Capstone Documentation Beta

Structure Power​PCInstruction.​Operand

public struct Operand: InstructionOperand

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

  • condition for crx operands.

%3 PowerPCInstruction.Operand PowerPCInstruction.Operand InstructionOperand InstructionOperand PowerPCInstruction.Operand->InstructionOperand

Member Of

PowerPCInstruction

PowerPC Instruction

Nested Types

PowerPCInstruction.Operand.Memory

Operand value referring to memory.

PowerPCInstruction.Operand.Condition

Condition value.

Conforms To

InstructionOperand

Protocol for instruction operands.

Properties

type

var type: PpcOp

Operand type.

value

var value: PpcOperandValue

Operand value.

register

var register: PpcReg!

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 for mem operand.

nil when not an appropriate operand.

condition

var condition: Condition!

Condition for crx operand.

nil when not an appropriate operand.