Capstone Documentation Beta

Structure Mips​Instruction.​Operand

public struct Operand: InstructionOperand

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

  • memory for memory operands.

%3 MipsInstruction.Operand MipsInstruction.Operand InstructionOperand InstructionOperand MipsInstruction.Operand->InstructionOperand

Member Of

MipsInstruction

MIPS Instruction

Nested Types

MipsInstruction.Operand.Memory

Operand value referring to memory.

Conforms To

InstructionOperand

Protocol for instruction operands.

Properties

type

var type: MipsOp

Operand type.

value

var value: MipsOperandValue

Operand value.

register

var register: MipsReg!

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!

Base/displacement value for mem operand.

nil when not an appropriate operand.