Find MIPS instruction for PC value. Suppose that the current value of PC is 0x00
ID: 1716142 • Letter: F
Question
Find MIPS instruction for PC value.
Suppose that the current value of PC is 0x00000000. Can we use a single jump instruction to go to PC= 0xl0018926? (if yes, write the jump instruction and show the value of the immediate field in Hex. If not, use a combinations of instructions to do so and show the immediate values in Hex) Suppose that the current value of PC is 0x1FFFF000. Can we use a single branch instruction to go to PC= 0xl0F14924 (if yes, write the branch instruction and show the value of the immediate field in Hex. If not, use a combinations of instructions to do so and show the immediate values in Hex) Suppose that the current value of PC is 0x00000000. Can we use a single branch instruction to go to PC= 0x10514924? (if yes, write the branch instruction and show the value of the immediate field in Hex. If not, use a combinations of instructions to do so and show the immediate values in Hex)Explanation / Answer
(a):
the jump address range is 0xF8000004 ~ 0x08000003. so in first case it is possible. jr is jump to pc instruction
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.