(A) Assume that a function has been called and the $ra is now0x00404010. The PC
ID: 3873085 • Letter: #
Question
(A) Assume that a function has been called and the $ra is now0x00404010. The PC is currently 0x00402000. What is the address of the jal instruction that called the function?
(B) Assume that a function has been called and the $ra is now 0x0040400C. The PC is currently 0x00402000. What is the address of the jal instruction that called the function?
(C) A function is called using a jal instruction. The jal instruction is located at 0x00402000. The function is located at 0x00404008. What is the value in the PC after the jal instruction is executed?
(D) A function is called using a jal instruction. The jal instruction is located at 0x00402000. The function is located at 0x00404008. What is the value in the $ra after the jal instruction is executed?
(E) A function is called using a jal instruction. The jal instruction is located at 0x00402008. The function is located at 0x0040400C. What is the value in the PC after the jal instruction is executed?
(F) A function is called using a jal instruction. The jal instruction is located at 0x00402010. The function is located at 0x00404008. What is the value in the $ra after the jal instruction is executed?
Explanation / Answer
1)JAL instruction address : 0x00404008
2)JAL instruction address : 0x00404004
3)PC address : 0x00404008
4)$ra address : 0x00402008
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.