Lib.Statement module
The base class for RISCV ASM statements is Statement.
It is inherited by Comment, Label
and Instruction. In turn, Instruction
is inherited by Instru3A
(for regular non-branching 3-address instructions),
AbsoluteJump and ConditionalJump.
- class Lib.Statement.AbsoluteJump(label: Label)[source]
Bases:
InstructionAn Absolute Jump is a specific kind of instruction
- ins: str = 'j'
- class Lib.Statement.ConditionalJump(cond: Condition, op1: Operand, op2: Operand, label: Label)[source]
Bases:
InstructionA Conditional Jump is a specific kind of instruction
- class Lib.Statement.Instru3A(ins, *args: Lib.Operands.Operand)[source]
Bases:
Instruction
- class Lib.Statement.Instruction[source]
Bases:
Statement- ins: str
- class Lib.Statement.Label(name: str)[source]
-
A label is both a Statement and an Operand.
- name: str