Want this question answered?
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.
program counter holds the address of the next instruction.
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.
The stack pointer keeps track of the top of the stack used by the current thread. The program counter keeps track of the next instruction in a program. Both are registers and both store a memory address.
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.
program counter
The program used inside microprocessors is microcode,the program what microprocessors execute is machine code.
Memory address FFFF0h is the memory address always assigned to the first instruction in the ROM BIOS
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.
• The processor fetches the instruction from memory • Program counter (PC) holds address of the instruction to be fetched next • PC is incremented after each fetch • Fetched instruction loaded into instruction register
when we execute a program, the starting address is loaded in the program counter. Then for each instruction the processor goes through fetch-decode-execute states. At the fetch state the instruction code is fetched then decoded to understand what exactly has to be done. Then finally it executes that instruction. This process goes on till it reaches the end of the program.
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...