If the current value of the PC is 0x10FF 0080 while the targ

If the current value of the PC is 0x10FF 0080 while the target address is 0x14FF A0A0.

1) Can you use a single MIPS branch instruction to get to the target instruction from current PC?

2) Can you use a single MIPS jump instruction to get to the target instruction from current PC?

Show calculation steps to justify your answer.

Solution

Calculating the offset : 0x14FFA0A0 0x10FF0080 = 0x400a020 (offset )

So , we can\'t use single MIPS branch or jump instruction to get to the target instruction from current PC . As to acheieve the offset, we need 32 bits. But , whereas branch command takes 16 bit offset and jump instruction take 26 bit offset. Therefore. through single command we can\'t acheive target address through neither single branch nor single jump instruction

If the current value of the PC is 0x10FF 0080 while the target address is 0x14FF A0A0. 1) Can you use a single MIPS branch instruction to get to the target inst

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site