Home Documentation Use The Interpreter

Documentation

Documentation


ADD arg

Adds to the accumulator by the amount of arg.

BR arg

Jumps to the branch with the label named in arg.

BRNEG arg

Jumps to the branch with the label named in arg if Accumulator is less than zero.

BRZNEG arg

Jumps to the branch with the label named in arg if Accumulator is less than or equal to zero.

BRPOS arg

Jumps to the branch with the label named in arg if Accumulator is more than zero.

BRZPOS arg

Jumps to the branch with the label named in arg if Accumulator is more than or equal to zero.

BRZERO arg

Jumps to the branch with the label named in arg if Accumulator is equal to zero.

COPY arg1 arg2

Copies the value of arg2 into arg1.

DIV arg

Divides the accumulator by the amount of arg.

MULT arg

Multiplies the accumulator by the amount of arg.

READ arg

Reads input and stores it to arg.

WRITE arg

Writes the value of arg to output.

STOP

Stops the program entirely.

STORE arg

Stores the value of the Accumulator into arg.

SUB arg

Subtracts from the accumulator by the amount of arg.

NOOP

Do nothing.

LOAD arg

Stores the value of arg into the Accumulator.

PUSH

Allocates a new element to the stack.

POP

Deallocate the top of stack.

STACKW n

Stores the value of the Accumulator into the n'th element down the stack. (n must be a non-negative integer.)

STACKR n

Stores the value of the n'th element down the stack into the Accumulator. (n must be a non-negative integer.)