a virtual machine
┌──────┬───────────────────────────────────────────┐
│ PUSH │ push a number to the stack │
│ POP │ pop a number off the stack and returns it │
│ PEEK │ return a number from the stack │
│ DISP │ display all items in the stack │
│ ADD │ add top two items on stack │
│ MULT │ multiply top two items on stack │
│ DUP │ duplicates top of stack │
└──────┴───────────────────────────────────────────┘
this vm is written completely in c. the conventional file extension is .xm
, but you can really pass anything...