Tanks are controlled with Little Man Computer processors. These processors are programmed with a limited number of low level instructions.
Click here for instructions, hints and tips
Instruction | Memory value | Description |
---|---|---|
ADD | 1xx | Add the value stored at memory address xx to the value in the accumulator register |
SUB | 2xx | Subtract the value stored at memory address xx from the value in the accumulator register |
STA | 3xx | Store the value from the accumulator register to the memory address xx |
LDA | 5xx | Load the value from the memory address xx into the accumulator register |
BRA | 6xx | Branch to xx (store xx in the program counter register so that the program will jump to xx on the next instruction cycle) |
BRZ | 7xx | Branch if the accumulator register stores the value zero, otherwise carry on as normal |
BRP | 8xx | Branch if the accumulator register stores zero or a positive number |
INP | 9x1 | Read a value from the input device x and store it in the accumulator register |
OUT | 9x2 | Send the contents of the accumulator register to the output device x |
HLT | 000 | Halt / Stop the processor |
DAT | xxx | Stores xxx in memory to be used as data |