answersLogoWhite

0

When can program counter be used?

User Avatar

Anonymous

11y ago
Updated: 8/20/2019

Basically, whenever you need to count something. One common scenario is when you need to repeat a program block a certain number of times - the counter variable will be used, in this case, to keep track of how many times the program block has already been executed.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What is the purpose 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.


Function of a program counter?

Program Counter is just a synonim for Instruction Pointer.


What is the program counter?

Counters in basic are used to count a number of times a process is being used.


What is an antiprogram?

An antiprogram is a set of actions used to counter those of another's program.


What is the difference between stack pointer and program counter?

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.


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 does program counter contain?

Program counter is a processor register that indicates where a computer is in its program sequence. It contains the address of the memory location.


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 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.


Difference between a counter and a register?

A register can hold data, and it can be used for temporary storage or, in the case of an accumulator, it can participate in arithmetic or logical operations. A counter is a special case of a register. Usually, it can only be loaded, stored, or incremented, or used for the stack or as the program counter.


What is program counter?

Synonym for Instruction Pointer.


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.