Difference between revisions of "Program Counter"

From Computer History Wiki
Jump to: navigation, search
m (Proper cat, +links)
m (+cat)
Line 4: Line 4:
  
 
{{semi-stub}}
 
{{semi-stub}}
 +
 +
[[Category: CPU Basics]]

Revision as of 22:47, 14 December 2018

A program counter (PC, or sometimes instruction counter) is a register in the CPU of a computer which indicates where, in the execution of the program in main memory, the CPU is.

The PC is usually updated automatically during the execution of each instruction to point to the next instruction. If the instruction is a jump, that updating is usually replaced by loading the target of the jump into the PC.