Bytecode intepretor for Monty language bytecode
Version | Opcode | Description |
---|---|---|
v 0.0.1 | push | pushes an element to the stack |
v 0.0.2 | pall | prints all the values on the stack, starting from the top of the stack |
v 0.1 | pint | prints the value at the top of the stack, followed by a new line |
v 0.2 | pop | removes the top element of the stack |
v 0.3 | swap | swaps the top two elements of the stack |
v 0.4 | add | adds the top two elements of the stack |
v 0.5 | nop | does nothing |
gcc -Wall -Wextra -Werror -pedantic -std=gnu89 *.c -o monty
./monty 00.m