The adress in the bytecode array to read next.
The adress in the bytecode array to read next.
Executes one already fetched and decoded bytecode instruction.
Fetches next integer from the bytecode array.
Fetches next integer from the bytecode array.
Fetches a value from an arbitrary offset in the virtual machine's stack.
Fetches a value from an arbitrary offset in the virtual machine's stack.
Pops a value from the virtual machine's stack.
Pops a value from the virtual machine's stack.
Pushes a value to the virtual machine's stack.
Pushes a value to the virtual machine's stack.
Stores a value at an arbitrary offset in the virtual machine's stack.
Stores a value at an arbitrary offset in the virtual machine's stack. The value previously stored there is overwritten with the given value.
Fetches, decodes and executes bytecode instructions until an
exit
instruction is executed.
Fetches, decodes and executes bytecode instructions until an
exit
instruction is executed.
Whether we are currently running.
Whether we are currently running.
The virtual machine's stack.
The virtual machine's stack.
Fetches, decodes and executes one bytecode instruction.
Fetches, decodes and executes one bytecode instruction.
A variant of the virtual machine that prints one line of debugging output for every instruction executed.
To create a debug virtual machine, use the companion object’s apply methods.