Capstone Documentation Beta

Structure M680xInstruction.​Operand

public struct Operand: InstructionOperand

Operand for M680x 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.

  • constantValue for constant operands.

  • indexedAddress for indexed operands.

  • relativeAddress for relative operands.

  • extendedAddress for extended operands.

  • directAddress for direct operands.

%3 M680xInstruction.Operand M680xInstruction.Operand InstructionOperand InstructionOperand M680xInstruction.Operand->InstructionOperand

Member Of

M680xInstruction

M680x Instruction

Nested Types

M680xInstruction.Operand.IndexedAddress

Operand referring to indexed addressing.

M680xInstruction.Operand.RelativeAddress

Operand referring to relative addressing (Bcc/LBcc).

M680xInstruction.Operand.ExtendedAddress

Operand referring to extended addressing.

Conforms To

InstructionOperand

Protocol for instruction operands.

Properties

is​InMnemonic

var isInMnemonic: Bool

true if the operand is implicit in the mnemonic.

type

var type: M680xOp

Operand type.

size

var size: UInt8

Size of this operand (in bytes).

access

var access: Access

Operand access mode.

value

var value: M680xOperandValue

Operand value.

register

var register: M680xReg!

Register value for register operand.

nil when not an appropriate operand.

immediate​Value

var immediateValue: Int32!

Immediate value for immediate operand.

nil when not an appropriate operand.

indexed​Address

var indexedAddress: IndexedAddress!

Indexed addressing operand.

nil when not an appropriate operand.

relative​Address

var relativeAddress: RelativeAddress!

Relative addressing operand (Bcc/LBcc).

nil when not an appropriate operand.

extended​Address

var extendedAddress: ExtendedAddress!

Extended address.

nil when not an appropriate operand.

direct​Address

var directAddress: UInt16!

Direct address.

nil when not an appropriate operand.

constant​Value

var constantValue: UInt8!

Constant value (bit index, page nr.).

nil when not an appropriate operand.