AlgoPlus//structures / instruction-cycle
Read the theory

Instruction Cycle

Fetch, decode, execute — traced as register transfers on a tiny CPU.

Phase
AC
PC
Legend
Fetch
Decode
Execute
AI Tutor Workspace
In a nutshell
The instruction cycle is the heartbeat of a CPU: for every instruction it fetches, decodes, and executes. Fetch copies the next instruction from memory into the CPU using the program counter to find it; decode reads the opcode to work out what to do; execute moves data through the ALU and registers, writing any result back. The program counter then advances and the whole cycle repeats, millions of times a second.
Ready
Press play to begin the cinematic walkthrough.
The CPU repeats fetch (PC→MAR, mem→MBR→IR, PC++), decode (read the opcode), and execute (move data through the ALU and accumulator). Every program is millions of these micro-operation cycles.
Key terms
Go deeper in the lesson
Read the full theory, intuition & complexity for Instruction Cycle.