[RISC-V] Which address is put into the Return address (ra) by Jump-and-Link (jal)?
Answer
the instruction immediately after it
Question
[RISC-V] Which address is put into the Return address (ra) by Jump-and-Link (jal)?
Answer
?
Question
[RISC-V] Which address is put into the Return address (ra) by Jump-and-Link (jal)?
Answer
the instruction immediately after it
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it Procedure call instructions Procedure call: jump-and-link instruction jal x1, ProcedureLabel Executed by caller Puts address of instruction after this one in x1 (ra) (return address) Jumps to target address of ProcedureLabel Procedure return: jump-and-link register instruction jalr x0, 0(x1) Executed by callee Like jal, but jumps to 0 + a