Interrupt
vm.set_interrupt(n, callback)
Interrupts are a runtime extension of the bytecode. You can use this to implement custom instructions and frequently used functions without the overhead of a name lookup.
The test environment uses Interrupt(10) to analyse the programs state at a certain point of execution.
| Range | Meaning |
|---|---|
| 0 - 9 | reserved |
| 10 | debug |
| 11 - 63 | reserved |
| 64 - 255 | free |