incf count304,1 ////count304 is h'00'
movf count304,0
addlw 0x06
btfss STATUS,DC
addlw -0x06
addlw 0x60
btfss STATUS,C
addlw -0x60
movwf count304
The above subroutine enables me to increment from 00 to 99 on LCD display
It didn't work while decrementing from 99 to 00
If anyone has an idea please let me know
Thanks
movf count304,0
addlw 0x06
btfss STATUS,DC
addlw -0x06
addlw 0x60
btfss STATUS,C
addlw -0x60
movwf count304
The above subroutine enables me to increment from 00 to 99 on LCD display
It didn't work while decrementing from 99 to 00
If anyone has an idea please let me know
Thanks
Last edited: