Mips¶
Instruction¶

- class lief.assembly.mips.Instruction¶
Bases:
InstructionThis class represents a Mips instruction (including mips64, mips32)
- property opcode lief.assembly.mips.OPCODE¶
The instruction opcode as defined in LLVM
- property operands Iterator[lief.assembly.mips.Operand | None]¶
Iterator over the operands of the current instruction
Opcodes¶
See: lief.assembly.mips.OPCODE
Operands¶

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

Register¶

Memory¶

- class lief.assembly.mips.operands.Memory¶
Bases:
OperandThis class represents a memory operand.
lw $4, 8($5) ldxc1 $f2, $4($7) | | | | | | +------+ | +---+ +-------+ | +-----+ | | | | | | v v v v v v Reg Disp Base Reg Index Base- property base lief.assembly.mips.REG¶
The base register.
For
lw $4, 8($5)it would return$5.
- property offset lief.assembly.mips.REG | int | None¶
The addressing offset.
It can be either:
A register (e.g.
ldxc1 $f2, $4($7))A displacement (e.g.
lw $4, 8($5))
PCRelative¶
