answersLogoWhite

0


Best Answer

The PC (program counter) is a CPU memory variable, commonly called a "register," that the CPU uses to track where the current executing instruction is located in memory, or on some CPUs, where the next instruction to execute is. Without a PC, the CPU would not know where the code it is currently executing is stored, and thus would not be able to run programs.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why contents of a program counter change?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How does fetch decode cycle work?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


How does the Fetch Decode Execute work?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


Function of a program counter?

Program Counter is just a synonim for Instruction Pointer.


How does fetch decode execute cycle work?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


What is the Process (Fetch Decode Execute Store)?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


Can you display the contents of the counter variable in the body of a loop?

Yes.


Why is program counter a pointer and not a counter?

A program counter is a register in a computer processor that contains the address (location) of the instruction being executed at the current time. In order for the program counter to move to the next instruction and thus process the entire program, it must be updated or changed at runtime. Pointers are variables that point to the address of where the variable's value is stored, and ONLY POINTERS can be changed at runtime. Trying to change a normal variable will just result in a FALSE return.


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


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.


What is program counter?

Synonym for Instruction Pointer.