0 votes 0 votes When is incremented value of PC(program counter) available in variable sized instructions? during decode phase after instruction execution during fetch phase none gate_forum asked Feb 2, 2016 gate_forum 661 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes During fetch phase, the PC is incremented by one. The incremented value is available after Fetch phase. Nishu answered Mar 6, 2016 Nishu comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments Nishu commented Mar 6, 2016 reply Follow Share yes..then it is also available after instruction execution phase ....then what should be the answer...option a, b or d... 0 votes 0 votes abhilashpanicker29 commented Mar 6, 2016 reply Follow Share I am not sure of the answer, but this is not a straight forward question. Here we have a CISC processor, which has a variable sized instruction. So, we may have to do multiple fetches. Like if its a 2-word instruction. 1. Fetch word 1 2. Decode word 1 3. Fetch word 2 4. Decode word 2 5. Execute, etc.. . . . So, i think the incremented value is available at Decode stage. It may not be available after instruction execution for multiple word instructions, after multiple fetches the previous incremented value of PC may be lost before the instruction completes. But I am not 100% sure if my reasoning is correct. 1 votes 1 votes Nishu commented Mar 6, 2016 reply Follow Share I think you r right.. so finally i got the answer..thanks to you... 0 votes 0 votes Please log in or register to add a comment.