What is a program counter? What is its use?

Answer Posted / vinay m k

PC [program counter] is a register holding the address of
the instruction which needs to be executed next. Its used
to keep track of current execution point - this tracking is
necessary for various reasons and some of these reasons are:
1. While branching or looping destination address is
specified with respect to the current PC value.
2. While branching to a function call current Pc value is
pushed into the stack and retrieved back when retrunign
from the function-call.
3. PC value is strored when servicing an interrupt and
restored back after execution of ISR.
http://www.vinaymk.com/tutorials

Is This Answer Correct ?    132 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the differences between the nmi and intr

724


What is the maximum memory addressable size by the 8086?

793


how does the 8086 differ from the 8085 microprocessor?

668


Other than setb, clr are there any single bit instructions?

687


State the total number of pins in the 8085 microprocessor?

626






In case of DVD, the speed is referred in terms of n X. Here what does X refers to

749


Tell me how do you detect if two 8-bit signals are same?

799


explain the different types of control flags for the 8086?

667


What is non-maskable interrupts?

733


Define the type of interrupts in the 8085 processor?

703


In the instruction FADD, What does F stands for

900


What are the various criteria to choose the microcontroller?

659


What is the difference between jmp and call?

708


What are the two major differences between intr and other interrupts (hardware)?

1136


What is fetch and execute cycle?

729