Capstone Documentation Beta

Structure M68kInstruction.​Operand

public struct Operand: InstructionOperand

Operand for M68k instructions.

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

  • register or registers for reg operands.

  • immediateValue for imm operands.

  • floatValue for fpSingle operands.

  • doubleValue for fpDouble operands.

  • registerList or registers for regBits operands.

  • registerPair or registers for regPair operands.

  • brDisp for branchDisplacement operands.

%3 M68kInstruction.Operand M68kInstruction.Operand InstructionOperand InstructionOperand M68kInstruction.Operand->InstructionOperand

Member Of

M68kInstruction

M68K Instruction

Nested Types

M68kInstruction.Operand.Memory

Instruction operand referring to memory

M68kInstruction.Operand.BranchDisplacement

Data when operand is a branch displacement

Conforms To

InstructionOperand

Protocol for instruction operands.

Properties

type

var type: M68kOp

Operand type.

addressing​Mode

var addressingMode: M68kAm

M68K addressing mode for this op.

value

var value: M68kOperandValue

Operand value.

immediate​Value

var immediateValue: UInt64!

Immediate value for imm operand.

nil when not an appropriate operand.

double​Value

var doubleValue: Double!

Immediate value for fpDouble operand.

nil when not an appropriate operand.

float​Value

var floatValue: Float!

Immediate value for fpSingle operand.

nil when not an appropriate operand.

register

var register: M68kReg!

Register value for reg operand.

nil when not an appropriate operand.

register​Pair

var registerPair: [M68kReg]!

Register pair for regPair operand.

nil when not an appropriate operand.

register​List

var registerList: [M68kReg]!

Register list for regBits operand.

nil when not an appropriate operand.

registers

var registers: [M68kReg]!

Registers for reg, regPair or regBits operand..

nil when not an appropriate operand.

memory

var memory: Memory!

Data when operand is targeting memory.

nil when not an appropriate operand.

branch​Displacement

var branchDisplacement: BranchDisplacement!

Data when operand is a branch displacement