⚠️ This page is a Work in Progress
TODO:
ACC, BAK, NIL, LEFT, RIGHT, UP, DOWN, ANY, LAST
| INST | Syntax | Description |
|---|---|---|
| NOP | NOP | A no-op (technically ADD NIL) |
| MOV | MOV {SRC}, {DST} | Reads {SRC} and writes to {DST} |
| SWP | SWP | Exchanges ACC and BAK values |
| SAV | SAV | Writes ACC to BAK |
| ADD | ADD {SRC} | Adds {SRC} to ACC |
| SUB | SUB {SRC} | Subtracts {SRC} from ACC |
| NEG | NEG | Flips ACC's sign |
| JMP | JMP {LABEL} | Jumps to {LABEL} |
| JEZ | JEZ {LABEL} | If ACC == 0, jumps to {LABEL} |
| JNZ | JNZ {LABEL} | If ACC != 0, jumps to {LABEL} |
| JGZ | JGZ {LABEL} | If ACC > 0, jumps to {LABEL} |
| JLZ | JLZ {LABEL} | If ACC < 0, jumps to {LABEL} |
| JRO | JRO {SRC} | Jumps to instruction at offset {SRC} |
Comments start
#
Labels have the format
{LABEL}:, either at the start of a line or on its own line
Breakpoints are used by adding
!to the beginning of a line
TODO:
Keyboard shortcuts
Viz Module?!