lib/vm.js - source code of vm
index.js - vm usage
To run vm
node index.js
To run vm in debug mode
DEBUG=1 node index.js
Each instruction is an unsigned 32 bit integer. Two bits reserved for instruction type.
00 - positive integer
01 - primitive instruction
10 - negative integer
11 - not in use
30 bits are reserved for instruction data.