LightSet
movwf temp ;save w
movlw high(tab) ;corrected as pointed out by ibwev
movwf pclath
movlw low(tab)
addf temp,w
btfsc STATUS,C
incf pclath,f
movwf pcl
;;;;;;;;;addwf PCL,1 ;add results to program counter and move to that line
tab retlw .255 ;filterDirt assigns W before calling LightSet, it can not = 0
;in other words, this line will never be called
retlw .10 ;button pressed 11 times (5 blink cycles)
retlw .8 ;blinks are multiplied by 2 to factor pause
retlw .6
retlw .4
retlw .2
retlw .22
retlw .20
retlw .18
retlw .16
retlw .14 ;button pressed once, 7 blinks
retlw .12 ;button not been pressed