answersLogoWhite

0


Best Answer

The function of the program counter register is to hold the address of the instruction that is being executed and (later) to hold the address of the instruction that will be executed next.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

The program counter holds the address of the next instruction.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the function of the program counter register?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the function of program counter?

program counter is a register that has the address of next instruction that has to be executed after currently executing instruction. it is used for proper execution of functions of computer by providing address of next instruction to microprocessor.


Can the program counter be one of the general purpose register?

No.


What does program counter contain?

Program counter is a processor register that indicates where a computer is in its program sequence. It contains the address of the memory location.


Function of a program counter?

Program Counter is just a synonim for Instruction Pointer.


How many bits are needed for the program counter and the instruction register?

24 bits are needed for the program counter. Assuming the instructions are 32 bits, then 32 bits are needed for the instruction register.


Which CPU register holds address for memory?

The program counter (PC) and the stack pointer (SP).


Difference between a counter and a register?

A register can hold data, and it can be used for temporary storage or, in the case of an accumulator, it can participate in arithmetic or logical operations. A counter is a special case of a register. Usually, it can only be loaded, stored, or incremented, or used for the stack or as the program counter.


What is the difference between the instruction location counter and the program counter?

The Instruction Location Counter is a variable inside of the assembler. While the Program Counter is a register. The PC solely keeps track of the next instruction in a program, ILC increments by each instruction's operand length.


What will happen when pop instruction is executed?

The top of stack to copied to the specified register and the stack pointer is incremented by 2. A special form of POP, RET, has the program continuing with the popped address in the program counter, i.e. a return from subroutine or function call.


Purpose of program counter in a microprocessor is?

In 8085 program counter stores the address of the next instruction which is to be fecthed.same function is performed by instruction pointer in 8086.


What register points to the next instruction?

actually register holds the data..there are 6 register which are temporary registers..program counter holds the address of next instruction to be fetched..instruction register holds the currently executed data...


Can the program counter be eliminated by using the top of the stack as a program count?

No. The program counter must be stored in a dedicated register. The stack is in working memory and you cannot operate on working memory; all values must be moved into a register in order to operate upon them. It makes no sense to move a program counter in and out of memory unless performing a context switch and you can't use a stack for context switching; a priority queue must be used for this. Keep in mind that the address of the top of the stack has to be moved in and out of its register during a context switch. It doesn't make sense to load the stack register from a priority queue before you can determine where the program counter value is. It's easier to keep all state information in the same place in the priority queue where it belongs.