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 a value from an arbitrary offset in the virtual machine's stack.
Pops a value from 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.
Whether we are currently running.
The virtual machine's stack.
Fetches, decodes and executes one bytecode instruction.
Simple virtual machine, that is, bytecode interpreter.
To create a virtual machine, use the companion object’s apply methods.
For debugging, consider to use a debug virtual machine instead.