GCSE · Computer Science · Eduqas · Spec C500QS

Program counter (PC)

Every instruction in a program sits at its own address in memory. So how does the CPU always know which one to fetch next?

Computer Science · Program counter

Call the PC before the CPU does

This program sits in main memory, one instruction per address. Step through it, and call each marked value before the table shows it. Nothing is run: every value is set by the lesson.

0: LOAD the typed-in number
1: ADD 2 to it
2: IF the total is more than 6, JUMP to address 5
3: OUTPUT "small"
4: STOP
5: OUTPUT "big"
6: STOP
PC during fetchInstruction fetchedPC for next fetch
0LOAD the typed-in number1

Step 1. The PC holds 0, so the CPU fetches the instruction stored at address 0. This first row is worked for you: after the fetch the PC is incremented to 1.

Step 1 of 4Called right: 0 of 3

Computer Science · Where the PC lives

Zoom in to find the program counter

Level 1 of 4: Computer

  • Frames are not drawn to scale.
  1. The whole machine. Its main memory holds a program's instructions, each at its own memory address.

Why the PC exists

?

Reason it through

Why does the CPU need a program counter at all?

Link 1 of 4

First link · your turn

Where does a Von Neumann processor keep the instructions of a program, and how are they laid out?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

Computer Science · What is in the PC?

What is the PC actually holding?

The CPU is about to fetch the next instruction. That instruction is stored in main memory at address 6. A classmate asks: what is the program counter holding right now?

Which idea is closest to what you think?
How sure are you?

Computer Science · The jump rule

Find where this trace goes wrong

A student traced the PC through a different program, stored from address 50 upwards. The instruction at address 52 is JUMP to 55. One line of the trace is wrong. Which one?

A student's trace — which line goes wrong?

Computer Science · Exam practice

Write it, then mark it

State the purpose of the program counter. Then describe what happens to it when an instruction is fetched. [3 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

The CPU's bookmark: one small value that says where the next instruction is.

What you need to know

  • The program counter (PC) is a register: a small, very fast storage location inside the CPU.
  • In a Von Neumann processor, a program's instructions are stored in main memory, each at its own memory address.
  • Have a goYour mate swears the program counter lives in main memory, right next to the instructions. Is your mate right?

    No. The PC is a register inside the CPU.

    Main memory is where the instructions are stored. The PC is a small, very fast storage location in the CPU itself.

  • So the CPU has to keep track of where the next instruction is.
  • That's the PC's job: it holds the memory address of the next instruction to be fetched.
  • It holds an address (the location of the instruction in memory), not the instruction itself.
  • When an instruction is fetched, the PC is incremented, so it holds the address of the next instruction in sequence.
  • Have a goThe PC holds 20, and the instruction at address 20 is not a jump. Each instruction sits at the next address up. What does the PC hold once that instruction has been fetched?

    21

    The fetch increments the PC, so it holds the address of the next instruction in sequence.

  • That update is what makes the CPU carry out instructions one after another, in order.
  • On a jump (branch), the PC is changed to the address jumped to, so that instruction is fetched next.
  • Have a goA classmate says: "On a jump the PC still goes up by one, and the CPU just ignores it." What actually happens to the PC?

    It is changed to the address being jumped to.

    The fetch increments the PC, but carrying out the jump then changes it to the target address, so the instruction at that address is fetched next.

The big picture

The program counter (PC) is a register inside the CPU that holds the memory address of the next instruction to be fetched. It is incremented after each fetch, which carries the CPU through the program in order, and changed to the target address on a jump.

Key points

1The PC is a register inside the CPU that holds the memory address of the next instruction to be fetched.
2It holds an address, never the instruction itself.
3After each fetch the PC is incremented. On a jump it is changed to the target address.

Worked example

Problem

A program is stored in main memory like this: address 20 LOAD 4, address 21 ADD 1, address 22 JUMP to 25, address 23 STORE, address 24 STORE, address 25 OUTPUT. The PC starts at 20. Write down the address the PC holds at each fetch.

⚠ Watch out

Writing that the PC contains the next instruction, or a count of the instructions run. It holds the memory address of the next instruction to be fetched.

🧠

Memory hook

The PC is a bookmark, not the page: it tells the CPU where to look, never what is written there.

✓

Check yourself

The instruction at address 14 is a jump to address 30. After it, what does the PC hold: an instruction or an address, and which one?

Flashcards

(11)
What is the program counter (PC)?
A register: a small, very fast storage location inside the CPU.
Is the PC part of main memory?
No. It is inside the CPU. Main memory is where the instructions are stored.
Where are a program's instructions stored in a Von Neumann processor?
In main memory, each at its own memory address.
Why must the CPU keep track of where the next instruction is?
Because every instruction sits at its own address, so the CPU can only fetch the next one if it knows that address.
What is the purpose of the PC?
To hold the memory address of the next instruction to be fetched.
Does the PC hold the instruction itself?
No. It holds an address: the location of the instruction in memory.
What happens to the PC when an instruction is fetched?
It is incremented.
Why is the PC incremented on a fetch?
So it holds the address of the next instruction in sequence.
What does updating the PC make the CPU do?
Move on through the program, carrying out instructions one after another in order.
What happens to the PC when an instruction jumps (branches)?
It is changed to hold the address of the instruction being jumped to.
After a jump, which instruction is fetched next?
The one at the address the PC was changed to.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 16 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.