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

How are time delays calculated in the 8085?

699


Describe the non-vectored interrupt process?

648


State the type of addressing modes supported by the 8086?

584


Which bit of the flag register is set when output overflows to the sign bit?

750


What are the temporary registers of 8085?

591






How many bit address bus does the 8085 use?

604


When is the LOCK prefix used often?

619


What are the major differences in short label and near label jump instructions?

578


What is an interrupt? List various types of interrupts available in 8051 microcontroller?

690


What is system bus?

755


Describe the (status) flag register of 8085?

591


What are the data pins of microprocessors?

685


What is the maximum size of segment in 8086 microprocessor?

575


What is the width of data bus?

559


List the various registers of 8085?

669