comparison code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 350:7250ca7c8d24 64kByte Logbook

64kByte logbook (Still incompatible to existing PC software)
author heinrichsweikamp
date Tue, 31 May 2011 19:43:29 +0200
parents ed137d66ac65
children 5c186a72cb5d
comparison
equal deleted inserted replaced
349:ed137d66ac65 350:7250ca7c8d24
74 infsnz divemins+0,F ; increase 16Bit value 74 infsnz divemins+0,F ; increase 16Bit value
75 incf divemins+1,F 75 incf divemins+1,F
76 infsnz divemins+0,F ; increase 16Bit value, twice 76 infsnz divemins+0,F ; increase 16Bit value, twice
77 incf divemins+1,F 77 incf divemins+1,F
78 78
79 btfsc divemins+1,7 ; At 0x8000? 79 movlw 0xFF
80 cpfseq divemins+0 ; =0xFFFF ?
81 bra menu_logbook2a ; No
82
83 cpfseq divemins+1 ; =0xFFFF ?
84 bra menu_logbook2a ; No
85
80 bra menu_logbook_reset ; yes, restart (if not empty) 86 bra menu_logbook_reset ; yes, restart (if not empty)
81 87
88 menu_logbook2a:
82 decf_eeprom_address d'2' ; -2 to eeprom address. 89 decf_eeprom_address d'2' ; -2 to eeprom address.
83 90
84 call I2CREAD ; reads one byte (Slow! Better use Blockread!) 91 call I2CREAD ; reads one byte (Slow! Better use Blockread!)
85 92
86 movlw 0xFA ; That was a FA ? 93 movlw 0xFA ; That was a FA ?