X1 Bytecode Interpreter
The X1 Bytecode is bytecode designed for simplicity in programming design and compilation.
Bytecode Instructions
push: Push aninto the memory stack.drop: Pop and discard the top element from the stack.dup: Duplicate the top element of the stack and put it on top.swap: Swap the top element and swap it with its adjacent element on the stack.add: Add thestack[top]andstack[top-1]element and append their result back to the top of the stack.sub: Sub thestack[top]andstack[top-1]element and append their result back to the top of the stack.mul: Mul thestack[top]andstack[top-1]element and append their result back to the top of the stack.div: Div thestack[top]andstack[top-1]element and append their result back to the top of the stack.jmp/: Uncoditional jump to either theor.call: Call a function referenced by the.