SPRAC71C February 2019 – March 2026
A called function returns by executing a dedicated LRET instruction, which pops the return address from the stack and branches to it.
If the function is an interrupt handler function, the IRET instruction is used instead.