| LOAD [address] |
Loads from memory into the register stack. |
| LOAD imm |
Loads an immediate onto the register stack. |
| STORE [address] |
Pops the stack top into memory. |
| COPY |
Pushes a new copy of the value at the top of the stack. |
| SWAP |
Swaps the top two values on the stack. |
| ADD |
Pops the top two values from the stack, then pushes
their sum. |
| SUB |
Pops the top two values from the stack, then pushes
their difference. The first value popped is the subtrahend
and the second value is the minuend
(difference=minuend−subtrahend). |
| MUL |
Pops the top two values from the stack, then pushes their
product. |
| DIV |
Pops the top two values from the stack, then pushes their
quotient. The first value popped is the divisor and the
second value is the dividend
(quotient=dividend÷divisor). |
If you need to implement a