Gate CS-2017-1 Question Paper With Solutions

Q. 41 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 Offset is always with respect to the address of the next instruction in the program sequence. Consider the following instruction sequence
Gate CS-2017-1 Question Paper With Solutions
If the target of the branch instruction is i, then the decimal value of the Offest is __________.

Note: This questions appeared as Numerical Answer Type.

(A) -16

(B) -18

(C) 16

(D) 18

Answer: (A)

Explanation:

Gate CS-2017-1 Question Paper With Solutions

Learn More:   Gate CS-2015-2 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here