Fetch, decode, execute
About this lesson: Fetch, decode, execute
In short
A program's instructions are stored in memory, one after another. The program counter (PC) holds the address of the next instruction. Move the PC along.

What you'll explore
- Stored programs: Instructions in memory
- A program's instructions are stored in memory, one after another. The program counter (PC) holds the address of the next instruction.
- One instruction at a time: Fetch, decode, execute
- Step through a 5-instruction program that adds 12 and 30.
- Again and again: The cycle never stops
- The processor repeats fetch, decode, execute for as long as the computer is on, billions of times a second.
- Check yourself: Program counter
- The PC holds 3. The processor fetches the instruction.
Also in this lesson
- Common mix-ups
- Adding two numbers
- Human CPU
Words to know
- fetch
- Copy the next instruction from memory.
- decode
- Work out what the instruction means.
- execute
- Carry out the instruction.
- program counter
- Holds the address of the next instruction.
- accumulator
- Holds the result of calculations.
Sources
- BBC Bitesize KS3 Computer Science
- Raspberry Pi Foundation, Computing curriculum resources
← Choosing network security · System software and translators →