In addition to the above variable-based math operations, stack-based math operations are available. In general, stack-based math is performed by PUSHing operands onto the stack, then calling the desired operation. The operand values will be POPed off the stack, with the result of the operation PUSHed back to the stack.

LOCAL:x // declare a local variable xLET:x:1// x = 1PUSH:10// place 10 on the stackPUSH:x // place the value of x on the stackMUL// stack value is now x * 10PUSH:1// place 1 on the stack ADD// stack value is now 10 + 1POP:x // x = top of stackPRINT:"x = %d":x // output x = 11