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

What is program counter in 8085?

801


How can the signals of the 8086 be categorised?

789


Explain the architecture of 8051 microcontroller ?

771


What are the functions of base registers?

834


What is the bhe signal? Explain its significance?

1012


Give an example of a combined addressing mode instruction?

731


List the various registers of 8085?

843


How many types memory mgt can divided?

826


What are the types of interrupts in 8051?

834


What jobs alu of 8085 can perform?

1032


What is 'daisy-chaining' in reference to the 8086?

933


How clock signal is generated in 8086?

820


What does eu do?

852


What does 8088 microprocessor have?

819


What is the difference between harvard architecture and von neumann architecture?

837