Capstone Documentation Beta

Structure Sparc​Instruction.​Operand

public struct Operand: InstructionOperand

Operand for SPARC 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 mem operands.

%3 SparcInstruction.Operand SparcInstruction.Operand InstructionOperand InstructionOperand SparcInstruction.Operand->InstructionOperand

Member Of

SparcInstruction

SPARC Instruction

Nested Types

SparcInstruction.Operand.Memory

Operand value referring to memory.

Conforms To

InstructionOperand

Protocol for instruction operands.

Properties

type

var type: SparcOp

Operand type.

value

var value: SparcOperandValue

Operand value.

register

var register: SparcReg!

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/index/displacement value for mem operand.

nil when not an appropriate operand.