← Back to CPU

Trace the Fetch-Execute Cycle

Follow along as the CPU processes each instruction

Program in RAM

100: LOAD 5 ← Put 5 into the accumulator
101: ADD 3 ← Add 3 to the accumulator
102: OUTPUT ← Display the result
Click "Next Step" to begin tracing
How this works: Click "Next Step" to see each stage of the Fetch-Execute cycle. Watch how the registers change as the CPU processes each instruction.
PC (Program Counter)
100
MAR (Memory Address)
-
MDR (Memory Data)
-
ACC (Accumulator)
0

Trace Table

Step Stage PC MAR MDR ACC What Happens
0 Start 100 - - 0 Ready to begin