A[]
is stored in register s0
. Describe what the following RISC-V instructions (RV32I) do:Answer the questions below:
a) what might be a reason be for saving the return address on the stack?
b) why is the stack pointer decremented by 12?
c) show the last 4 lines of this procedure which immediately precede the return from procedure instruction (or jalr instruction):