Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a program counter? What is its use?

Answer Posted / amita

The program counter, or PC (also called the instruction pointer[1], or instruction address register[2], or just part of the instruction sequencer[3] in some computers) is a processor register that indicates where the computer is in its instruction sequence. Depending on the details of the particular computer, the PC holds either the address of the instruction being executed, or the address of the next instruction to be executed.
In most processors, the instruction pointer is incremented automatically after fetching a program instruction, so that instructions are normally retrieved sequentially from memory, with certain instructions, such as branches, jumps and subroutine calls and returns, interrupting the sequence by placing a new value in the program counter.
Such jump instructions allow a new address to be chosen as the start of the next part of the flow of instructions from the memory. They allow new values to be loaded (written) into the program counter register. A subroutine call is achieved simply by reading the old contents of the program counter, before they are overwritten by a new value, and saving them somewhere in memory or in another register. A subroutine return is then achieved by writing the saved value back in to the program counter again.

Is This Answer Correct ?    29 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the parity flag do?

1084


What are the functions of general purpose registers?

1130


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

1546


The operation being performed by the 8085 can be checked by which pins?

1003


How is the system clock calculated in the 8085?

1163


What is the difference between 8085 microprocessor and a 8086 microprocessor?

1236


List the various registers of 8085?

1095


What are the boons and banes of having more general purpose registers in a microprocessor.

1193


How many bits microprocessor was first developed?

1049


What is coprocessor?

1058


Mention interrupts pins of 8085?

1152


What is base segment address?

1094


What number of the times the instruction sequence below will loop before coming out of loop is MOV AL, 00hA1: INC AL JNZ A1

1468


What is tri-state logic?

1230


Define the process of an interrupt operation in the 8086?

985