Module instructions

Source

Structs§

AddApInstruction
Represents the InstructionBody “ap += op” for a given operand op.
AssertEqInstruction
Represents the InstructionBody “a = b” for two operands a, b.
CallInstruction
Represents a call instruction “call rel/abs target”.
Instruction
Represents an instruction, including the ap++ flag (inc_ap).
JnzInstruction
Represents the InstructionBody “jmp rel <jump_offset> if condition != 0”.
JumpInstruction
Represents the InstructionBody “jmp rel/abs target”.
RetInstruction
Represents a return instruction, “ret”.

Enums§

InstructionBody

Functions§

op_size_based_on_res_operands
Returns the size of instruction based on whether the res operand includes an immediate or not.