The Little Computer

Memory:

Address
Value

CPU:

Accumulator (ACC)

Program Counter (PC)

Instruction Register (IR)

What is about to happen:

Instruction Guide:

Machine Code Instruction
000 Halt
1XX Add location XX
2XX Subtract location XX
3XX Store to XX
5XX Load from XX
6XX Branch always to XX
7XX Branch if == 0 to XX
8XX Branch if >= 0 to XX
901 Get input
902 Output

XX indicates a two-digit memory address

Controls:

Input:

Output: