Capstone Documentation Beta

Structure X86Instruction.​Operand

public struct Operand: InstructionOperand

Operand for X86 instructions.

The operand's value can be accessed by the value property, or by a property corresponding to the operand's type:

  • register for reg operands.

  • immediateValue for imm operands.

  • memory for mem operands.

%3 X86Instruction.Operand X86Instruction.Operand InstructionOperand InstructionOperand X86Instruction.Operand->InstructionOperand

Member Of

X86Instruction

X86 Instruction

Nested Types

X86Instruction.Operand.Memory

Operand referring to memory

Conforms To

InstructionOperand

Protocol for instruction operands.

Properties

type

var type: X86Op

Operand type.

value

var value: X86OperandValue

Operand value.

size

var size: UInt8

Size of this operand (in bytes).

access

var access: Access

Operand access mode.

avx​Broadcast​Type

var avxBroadcastType: X86AvxBcast!

AVX broadcast type.

avx​Zero​Opmask

var avxZeroOpmask: Bool

AVX zero opmask {z}.

register

var register: X86Reg!

Register value for reg operand.

nil when not an appropriate operand.

immediate​Value

var immediateValue: Int64!

Immediate value for imm operand.

nil when not an appropriate operand.

memory

var memory: Memory!

Values for mem operand.

nil when not an appropriate operand.