Suppose that the address of the jump instruction (j) is 0x2000,0000. Is it possible to use this jump instruction to set the PC to the address as 0x3000,0000? Please elaborate your answer
1). ANSWER :
GIVENTHAT :
In MIPS, jump instruction is used to move from one address to another but with a condition that difference between the current address and the address to which you want to jump should not be greater than 228
We have:
Current address = 0x20000000
New Address = 0x30000000
let us see the difference betwen the two:
0x30000000 - 0x20000000 = 0x10000000
in binary, we can write it as
0001 0000 0000 0000 0000 0000 0000 0000 = 228
But it must be less than 228
So, we can not use jump instruction for given addresses
Get Answers For Free
Most questions answered within 1 hours.