1,513 views
1 votes
1 votes
Hi Guys,

In most of the books it is mentioned that PC contains the starting address of instruction.

And during the fetch cycle it is incremented and it points to the next instruction. is this always TRUE ?

But I have one doubt -

Let us assume we have One Word, Two Word and Three Word instructions in our computer then before ID(instruction decode) phase how do we know how much PC should be incremented because in IF phase we do not know - how many words does current instruction take ?

1 Answer

0 votes
0 votes
you are saying PC contains starting address of the instruction but PC contains starting address of the program then immediately points to the next instruction..here the PC step size depends on the word length of the processor so whatever will be the step size processor,it will be decided based on processor word size.

Related questions

0 votes
0 votes
1 answer
1
gate_forum asked Feb 2, 2016
628 views
When is incremented value of PC(program counter) available in variable sized instructions?during decode phaseafter instruction executionduring fetch phasenone
1 votes
1 votes
1 answer
3
sh!va asked Dec 30, 2016
841 views
The content of Program counter is incremented in which statge of execution of last instruction?Instruction FetchingOperand fetchingExecutionNone of the above
0 votes
0 votes
1 answer
4