SPRAC71A March 2019 – February 2020
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.