answersLogoWhite

0


Best Answer

There is no such thing as an instruction counter. You are either referring to the instruction register (IR) or the program counter (PC), The PC is more commonly known as the instruction pointer (IP). The IR and IP work together.

The IR fetches the instruction currently pointed to by the IP which is then incremented to refer to the next instruction. The IR is then decoded and executed and the cycle repeats ad infinitum (known as the fetch-decode-execute cycle). However, if the fetched instruction is a control transfer instruction (such as JMP), its execution will cause the IP to refer to another address which, in turn, causes execution to "branch" to a new section of code on the next fetch-decode-execute cycle.

Note that a low-level JMP is equivalent to a goto statement in high-level code, however code can also branch through high-level if and switch statements as well as structured loops such as for, while and do-while statements.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the function of the instruction counter?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the function of the program counter register?

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.


Purpose of program counter in a microprocessor is?

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.


Function of a program counter?

Program Counter is just a synonim for Instruction Pointer.


What is the function of program counter?

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.


What is the function of XRA instruction?

What is the function of XRA instruction


What is the difference between the instruction location counter and the program counter?

The Instruction Location Counter is a variable inside of the assembler. While the Program Counter is a register. The PC solely keeps track of the next instruction in a program, ILC increments by each instruction's operand length.


What is program counter?

Synonym for Instruction Pointer.


Which register in 8086 contains the address of the next instruction to be fetched?

program counter holds the address of the next instruction.


What is the role of sequence counter in execution of an instruction?

Sequence counter keeps track of the number of instructions that are to be executed.


How many bits are needed for the program counter and the instruction register?

24 bits are needed for the program counter. Assuming the instructions are 32 bits, then 32 bits are needed for the instruction register.


What is the instruction for exit in 8085 microprocessors?

There is no exit instruction in the 8085. Do you mean return, as in from a function or interrupt? If so, the instruction is RET.


Is instruction opcode a type of memory?

The instruction opcode is a type of data contained in memory, pointed to by the PC (Program Counter) register.