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
00000000000000001000000001100111
31:0
 
Format I-Type
Opcode 0x00008067
Extension Pseudo

Operands