212k views
4 votes
What is the difference between a program counter, an instruction register, and the program status word

User Kage
by
3.2k points

1 Answer

12 votes

Answer:

You will need both always. The program

counter (PC) holds the address of the next instruction

to be executed, while the instruction register (IR) holds

the encoded instruction. Upon fetching the instruction,

the program counter is incremented by one "address

value" (to the location of the next instruction)

User Hrishikesh Mishra
by
3.5k points