Program Counter

From C64-Wiki
(Redirected from Program counter)
Jump to: navigation, search

The Program Counter, also known as Instruction Pointer, IP, or PC 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.