SPRAC71B February 2019 – October 2023
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.