Lib.RiscV module
MIF08, CAP, CodeGeneration, RiscV API Functions to define instructions.
- Lib.RiscV.jump(label: Label) AbsoluteJump [source]
Unconditional jump to label.
- Lib.RiscV.conditional_jump(label: Label, op1: Operand, cond: Condition, op2: Operand)[source]
Add a conditional jump to the code. This is a wrapper around bge, bgt, beq, … c is a Condition, like Condition(‘bgt’), Condition(MiniCParser.EQ), …
- Lib.RiscV.land(dr: Operand, sr1: Operand, sr2orimm7: Operand) Instru3A [source]
And instruction (cannot be called and due to Python and).