2,029 views
1 1 vote
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 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.
Position:
Show:

Related questions

0 0 votes
1 1 answer
1.4k
1.4k views
gate_forum asked Feb 2, 2016
1,432 views
When is incremented value of PC(program counter) available in variable sized instructions?during decode phaseafter instruction executionduring fetch phasenone
3 3 votes
1 1 answer
1.3k
1.3k views
kartikey asked Nov 29, 2015
1,282 views
Consider following programMOV R1,5000MOV R2,2000ADD R2,R2,R3 //Interrupt raised here, Mem Add of this instruction is 1008 Now when ISR is served and program resumes f...
1 1 vote
1 answers 1 answer
1.7k
1.7k views
sh!va asked Dec 30, 2016
1,678 views
The content of Program counter is incremented in which statge of execution of last instruction?Instruction FetchingOperand fetchingExecutionNone of the above
0 0 votes
1 1 answer
2.4k
2.4k views
Na462 asked Jul 27, 2018
2,391 views
Consider a 16 bit processor in which the following one address instruction is loaded into main memory : The effective address using PC-relative addressing mode when proce...