| HLT |
|
Halts the CPU. |
f000 |
| LDA |
<address> |
Loads the value from the memory address into the accumulator. |
20XX |
| <immediate> |
Loads the immediate value into the accumulator. |
10XX |
| STA |
<address> |
Stores the value from the accumulator into the memory address. |
30XX |
| ADD |
<address> |
Adds the value from the memory address and the accumulator. |
21XX |
| <immediate> |
Adds the immediate value and the accumulator. |
11XX |
| AND |
<address> |
Bitwise ANDs the value from the memory address and the accumulator. |
22XX |
| <immediate> |
Bitwise ANDs the immediate value and the accumulator. |
12XX |
| XOR |
<address> |
Bitwise XORs the value from the memory address and the accumulator. |
23XX |
| <immediate> |
Bitwise XORs the immediate value and the accumulator. |
13XX |
| SLT |
<address> |
Sets the accumulator to one if the accumulator value is less than the value from the memory address; zero otherwise. |
25XX |
| <immediate> |
Sets the accumulator to one if the accumulator value is less than the immediate, zero otherwise. |
15XX |
| EQL |
<address> |
Sets the accumulator to one if the accumulator value is equal to the value from the memory address; zero otherwise. |
27XX |
| <immediate> |
Sets the accumulator to one if the accumulator value is equal to the immediate, zero otherwise. |
17XX |
| SUB |
<address> |
Subtracts the value from the memory address from the accumulator. |
28XX |
| <immediate> |
Subtracts the immediate value from the accumulator. |
18XX |
| BNEZ |
<label> |
Branches to the label, if the accumulator is not equal to zero. |
40XX |
| DSP |
|
Outputs the current accumulator value to the TTY. |
5000 |
| READ_CHAR |
|
Reads a character from the TTY to the accumulator. |
6000 |