Detailed reference for the GOTO instruction in PIC18 ISA.
Jump unconditionally to the given program memory address.
; Goto absolute address 0x1234
GOTO 0x1234 ; PC = 0x1234; Goto absolute address 0x1234
GOTO 0x1234 ; PC = 0x1234; Goto label defined later in the code
GOTO LOOP_START ; PC = address of LOOP_START; Goto label defined later in the code
GOTO LOOP_START ; PC = address of LOOP_START; Goto label with an EQU constant
PAGE equ 0x2000
GOTO PAGE ; PC = 0x2000; Goto label with an EQU constant
PAGE equ 0x2000
GOTO PAGE ; PC = 0x2000; Goto a relative label using back‑reference
GOTO END
;
END: ; Execution continues here after the jump; Goto a relative label using back‑reference
GOTO END
;
END: ; Execution continues here after the jump