Skip to content

ConditionalJumpInstruction

Runs the jumpi instruction opcode for the interpreter. 0x57 -> JUMPI

Signature

pub fn conditionalJumpInstruction(self: *Interpreter) (Interpreter.InstructionErrors || error{InvalidJump})!void

ProgramCounterInstruction

Runs the pc instruction opcode for the interpreter. 0x58 -> PC

Signature

pub fn programCounterInstruction(self: *Interpreter) Interpreter.InstructionErrors!void

JumpInstruction

Runs the jump instruction opcode for the interpreter. 0x56 -> JUMP

Signature

pub fn jumpInstruction(self: *Interpreter) (Interpreter.InstructionErrors || error{InvalidJump})!void

JumpDestInstruction

Runs the jumpdest instruction opcode for the interpreter. 0x5B -> JUMPDEST

Signature

pub fn jumpDestInstruction(self: *Interpreter) GasTracker.Error!void

InvalidInstruction

Runs the invalid instruction opcode for the interpreter. 0xFE -> INVALID

Signature

pub fn invalidInstruction(self: *Interpreter) !void

StopInstruction

Runs the stop instruction opcode for the interpreter. 0x00 -> STOP

Signature

pub fn stopInstruction(self: *Interpreter) !void

ReturnInstruction

Runs the return instruction opcode for the interpreter. 0xF3 -> RETURN

Signature

pub fn returnInstruction(self: *Interpreter) (Interpreter.InstructionErrors || Memory.Error || error{Overflow})!void

RevertInstruction

Runs the rever instruction opcode for the interpreter. 0xFD -> REVERT

Signature

pub fn revertInstruction(self: *Interpreter) (Interpreter.InstructionErrors || Memory.Error || error{ Overflow, InstructionNotEnabled })!void

UnknownInstruction

Instructions that gets ran if there is no associated opcode.

Signature

pub fn unknownInstruction(self: *Interpreter) Interpreter.InstructionErrors!void