1.2.4c: Assembly language (including following and writing simple programs with the Little Man Computer instruction set).
Keyword | Definition |
---|---|
ADD | Adds the value in a specified memory location to the value in the accumulator, and stores the result in the accumulator. |
BRA | Unconditionally jumps to a specified memory location. |
BRP | Conditionally jumps to a specified memory location if the value in the accumulator is positive. |
BRZ | Conditionally jumps to a specified memory location if the value in the accumulator is zero. |
HLT | Halts the execution of the program. |
INP | Reads a value from the input device and stores it in the accumulator. |
LDA | Loads the value from a specified memory location into the accumulator. |
OUT | Writes the value in the accumulator to the output device. |
STA | Stores the value in the accumulator in a specified memory location. |
SUB | Subtracts the value in a specified memory location from the value in the accumulator, and stores the result in the accumulator. |