Mercurial > public > mk2
diff 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 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_logbook.asm Mon May 30 19:28:59 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_logbook.asm Tue May 31 19:43:29 2011 +0200 @@ -76,9 +76,16 @@ infsnz divemins+0,F ; increase 16Bit value, twice incf divemins+1,F - btfsc divemins+1,7 ; At 0x8000? + movlw 0xFF + cpfseq divemins+0 ; =0xFFFF ? + bra menu_logbook2a ; No + + cpfseq divemins+1 ; =0xFFFF ? + bra menu_logbook2a ; No + bra menu_logbook_reset ; yes, restart (if not empty) +menu_logbook2a: decf_eeprom_address d'2' ; -2 to eeprom address. call I2CREAD ; reads one byte (Slow! Better use Blockread!)