Still loading. This can take a moment on a slow connection.
Still loading. This can take a moment on a slow connection.
Follow each instruction through fetch, decode and execute, and say which register changes at every step.
Instruction 1 · fetchThe address in the PC, 0, is copied into the MAR.
| Address | Contents |
|---|---|
| 0 | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 |
After your first prediction, this says why it works.
Try what you found on the lesson’s 32 marked questions. Practise in CPU and Microprocessors
Loads one number, adds another, and stores the answer back into memory. Watch address 15 on the last instruction before HALT.
Type in a memory cell to change the program. The run starts again from its first step.
Key
A teaching machine with one accumulator and 16 memory cells, each holding an instruction or a number. Its instruction set is the lab’s own: the syllabus does not set one. A real CPU does more at once, but the order of the transfers is the one textbooks give.