Difference between revisions of "Program Counter"

From Computer History Wiki
Jump to: navigation, search
(A decent start)
 
m (+link)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.
+
A '''program counter''' ('''PC''', or sometimes '''instruction counter''') is a [[register]] in the [[Central Processing Unit|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 [[execute|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.
 +
 
 +
{{semi-stub}}
 +
 
 +
[[Category: CPU Basics]]

Latest revision as of 14:43, 12 May 2023

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.