Control Unit - Q11

+2 votes

Consider the following PC-relative addressing mode instruction of RISC instruction set architecture.
1000: BEQ R1, R2, label
1004: ADD R1, R2, R3
Where the label is used as an offset and 1000 is the memory location from where instruction I1 is fetched. R1, R2, and R3 are general purpose registers.
If R1 = 0; R2=0 and label = 20, what is the memory address of the next instruction to be executed?

asked Jun 8 in Computer Organization by gbmentor (54,290 points)
reshown Jun 9 by gbmentor

1 Answer

+2 votes
Pc is now at 1004 +20 = 1024 so 1024 is correct one
answered Jun 9 by tsnikhilsharmagate2018 (19,690 points)