Program Counter

From C64-Wiki
Jump to: navigation, search
The Program Counter (PC; first row) in machine program monitor "TEDMON" at Plus/4.

The Program Counter, also known as Instruction Pointer, IP, or PC (see also TIM or TEDMON) is a 16 bit register in the 6502/6510 processor that contains the address in RAM of the currently executing instruction on the Commodore 64.

As each instruction and operand is fetched from RAM the Program Counter is incremented to point to the next instruction.

Some instructions modify the Program Counter either directly or indirectly in other ways to allow branching, jumping and interrupt behavior in the CPU.

The list of instruction that directly or indirectly modify the Program Counter can be found in the Category:Program Counter.


Links[edit]

WP-W11.png Wikipedia: Processor_register