Execution
Fetch
›
Decode
›
Execute
Bus
CPU
ALU
PC
IR
R1
R2
Control Unit
Memory
1
00000100
(4)
2
00000001
(1)
:
:
17
0000010010011001
18
0000010010011010
19
0000011011001000
20
0000010011010001
LOAD R1, NUM1
LOAD R2, NUM2
ADD R1, R2
STORE R1, NUM1
OS keyboard buffer
Output Devices:
Monitor/Printer/...
Hard Disk
Input Devices:
Keyboard/CD/..
Address on the Bus
Data or command
Inside the Control Unit
int num1;
scanf("%d", &num1);
Waiting for an instruction to decode.
Restart
Previous
Play
Next
Slow
Normal
Fast
Use ← → to step, Space to play or pause.