;--------- VARIABLE DEFINITIONS
#define RAM_Start 0x20
CBLOCK RAM_Start
counterLo
counterMi
counterHi
ENDC
;----------------------------------------------
; Fosc = 4MHz, delay 4,999994s
;----------------------------------------------
delay5 ;2 (from call)
movlw 0x70 ;3
movwf counterLo ;4
movlw 0x10 ;5
movwf counterMi ;6
movlw 0xF9 ;7
movwf counterHi ;8
loop
incf counterLo,F ; 1
btfsc STATUS,Z ; 3
incf counterMi,F ; 4
btfsc STATUS,Z ; 6
incf counterHi ; 7
btfss STATUS,Z ; 9
goto loop ; 11
retlw 0x00 ;10