GATE Computer Science (CS) 2017 Shift 1 Solved Paper
© examsiri.com
Question : 59 of 65
Marks:
+1,
-0
Consider a RISC machine where each instruction is exactly 4 bytes long. Conditional and unconditional branch instructions use PC-relative addressing mode with Offset specified in bytes to the target location of the branch instruction. Further the Offsetis always with respect to the address of the next instruction in the program sequence. Consider the following instruction sequence.
If the target of the branch instruction is i, then the decimal value of the Offset is _____.
| Instr. No. | Instruction | ||
| i | : | add | R2, R3, R4 |
| sub | R5, R6, R7 | ||
| cmp | R1, R9, R10 | ||
| beq | R1, Of f set |
If the target of the branch instruction is i, then the decimal value of the Offset is _____.
- Your Answer:
Go to Question: