Detailed reference for the RETLW instruction in PIC18 ISA.
Load an 8‑bit literal value into WREG and return from the current subroutine.
RETLW literal
; Return with literal 0x27 in WREG
RETLW 0x27 ; WREG = 0x27, PC = return address; Return with literal 0x27 in WREG
RETLW 0x27 ; WREG = 0x27, PC = return address