Errors
Errors occur when a program behaves unexpectedly. Errors are normally handled by the emulator, but programs can set a system vector to evaluate when errors occurs. There are three known error types, and each one has an error code:
01
Underflow: Occurs when an opcode is trying to pop an item from an empty stack.02
Overflow: Occurs when an opcode is trying to push an item to a full stack.03
Division By Zero: Occurs when the DIV opcode is done on a value of zero.
