RET
Return
RET
Returns from a subroutine call.
Details
RET returns from a subroutine by jumping to the address in x1 (ra). It is a pseudoinstruction for JALR x0, 0(x1).
Pseudocode Operation
PC = R[1];
Example
RET
Encoding
Binary Layout
000000000000
31:20
00001
19:15
000
14:12
00000
11:7
1100111
6:0