Capstone Documentation Beta

Class X86Instruction

public class X86Instruction: PlatformInstruction<X86Ins, X86Grp, X86Reg>

X86 Instruction

%3 X86Instruction X86Instruction OperandContainer OperandContainer X86Instruction->OperandContainer PlatformInstruction<X86Ins, X86Grp, X86Reg> PlatformInstruction<X86Ins, X86Grp, X86Reg> X86Instruction->PlatformInstruction<X86Ins, X86Grp, X86Reg>

Nested Types

X86Instruction.Operand

Operand for X86 instructions.

X86Instruction.SIB

SIB Layout

X86Instruction.Encoding

Encoding information.

Conforms To

OperandContainer

Protocol for instructions that contain operands.

PlatformInstruction<X86Ins, X86Grp, X86Reg>

Properties

prefix

var prefix: [X86Prefix]

Instruction prefix, which can be up to 4 elements.

Empty when detail mode is off.

opcode

var opcode: [UInt8]

Instruction opcode, which can be from 1 to 4 bytes in size. This contains VEX opcode as well..

Empty when detail mode is off.

rex

var rex: UInt8!

REX prefix (x86_64).

nil when detail mode is off, or not appropriate instruction.

address​Size

var addressSize: UInt8!

Address size, which can be overridden with prefix.

nil when detail mode is off.

mod​RM

var modRM: UInt8!

ModR/M byte.

nil when detail mode is off.

displacement

var displacement: Int64!

Displacement value.

nil when detail mode is off.

sib

var sib: SIB!

SIB (Scaled Index Byte).

nil when detail mode is off, or not appropriate instruction.

xop​Condition​Code

var xopConditionCode: X86XopCc!

XOP Condition Code.

nil when detail mode is off, or doesn't exist.

sse​Condition​Code

var sseConditionCode: X86SseCc!

SSE Condition Code.

nil when detail mode is off, or doesn't exist.

avx​Condition​Code

var avxConditionCode: X86AvxCc!

AVX Condition Code.

nil when detail mode is off, or doesn't exist.

avx​Suppress​All​Exception

var avxSuppressAllException: Bool!

AVX Suppress all Exception.

nil when detail mode is off.

avx​Static​Rounding​Mode

var avxStaticRoundingMode: X86AvxRm!

AVX static rounding mode.

nil when detail mode is off, or not AVX instruction.

eFlags

var eFlags: X86Eflags!

EFLAGS updated by this instruction..

nil when detail mode is off, or if this is a FPU instruction.

fpu​Flags

var fpuFlags: X86FpuFlags!

FPU flags updated by this instruction.

nil when detail mode is off, or not a FPU instruction.

encoding

var encoding: Encoding!

Encoding information.

nil when detail mode is off.

operands

var operands: [Operand]

Instruction operands.

Empty when detail mode is off.