Thursday, May 15, 2008

What is Program counter?

Program counter holds the address of either the first byte of the next instruction to be fetched for execution or the address of the next byte of a multi byte instruction, which has not been completely fetched. In both the cases it gets incremented automatically one by one as the instruction bytes get fetched. Also Program register keeps the address of the next instruction.
PC holds the address of the next instruction to be executed.... it directly fetches the next address from the main memory... their by increasing the execution speed of the processor

or
Program Counter is a special purpose register which stores the address of the next instruction to be executed.

No comments:

Contributors