RETURN
Detailed reference for the RETURN instruction in PIC18 ISA.
Description
Return from subroutine.
- Pops the return address from the stack and loads it into the Program Counter (PC).
- The Stack Pointer (SP) is incremented as the address is removed.
- Program status bits are unchanged.
- No operands are required.
Examples
; Return from subroutine
RETURN ; Pop PC from stack and jump to it
; Return from subroutine
RETURN ; Pop PC from stack and jump to it