Back to the 2015 paper

Module 2: x86 Architecture, CPU Control, I/O, Memory System Design

20152m

Define program counter.

Worked SolutionAI Assisted

Program Counter (PC):

The Program Counter is a CPU register that holds the memory address of the next instruction to be fetched for execution.

  • At fetch, CPU reads instruction from address in PC, then PC is incremented (by instruction length, typically +1 or +4) to point to next sequential instruction.
  • On branch/jump/call/return and interrupt, PC is loaded with target address, changing sequential flow.
  • Essential for control flow and instruction sequencing; often called Instruction Pointer (IP).

Also used to calculate return address and for relative addressing.

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.