PowerPC¶
Instruction¶

- class lief.assembly.powerpc.Instruction¶
Bases:
InstructionThis class represents a PowerPC (ppc64/ppc32) instruction
- property opcode lief.assembly.powerpc.OPCODE¶
The instruction opcode as defined in LLVM
- property operands Iterator[lief.assembly.powerpc.Operand | None]¶
Iterator over the operands of the current instruction
Opcodes¶
See: lief.assembly.powerpc.OPCODE
Operands¶

- class lief.assembly.powerpc.Operand¶
Bases:
objectThis class represents an operand for a PowerPC instruction
- property to_string str¶
Pretty representation of the operand
Immediate¶

Register¶

- class lief.assembly.powerpc.operands.Register¶
Bases:
OperandThis class represents a register operand.
For instance:
add 3, 4, 5 | | | | | +---------> Register(5) | +------------> Register(4) +---------------> Register(3)- property value lief.assembly.powerpc.REG¶
The effective
lief.assembly.powerpc.REGwrapped by this operand
Memory¶

- class lief.assembly.powerpc.operands.Memory¶
Bases:
OperandThis class represents a memory operand.
lwz 3, 8(4) lwzx 3, 4, 5 | | | | | +------+ +---+ +------+ | +---+ | | | | | v v v v v Disp Base Reg Base Index- property base lief.assembly.powerpc.REG¶
The base register.
For
lwz 3, 8(4)it would return4.
- property offset lief.assembly.powerpc.REG | int | None¶
The addressing offset.
It can be either:
An index register (e.g.
lwzx 3, 4, 5)A displacement (e.g.
lwz 3, 8(4))
PCRelative¶
