Question: MIPS provides control flow to support procedure calls and returns. Select the correct statement below regarding instruction control flow in MIPS. jal is the only

MIPS provides control flow to support procedure calls and returns. Select the correct statement below regarding instruction control flow in MIPS.

jal is the only MIPS instruction that can access the value of the program counter, so it can store the return address PC + 4 in $ra.
The jal instruction is used to call procedures saving the return address (the address of the next instruction) in the dedicated register $at, before jumping to the procedure.
None of the above statements are true regarding control flow in MIPS.
To transfer control back to the caller, the procedure just has to jump to the address that was stored in $sp.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!