Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 790:53425d598585
NEW: Store useage timer in logbook header (Byte 54)
author | heinrichsweikamp |
---|---|
date | Thu, 28 Aug 2014 17:45:16 +0200 |
parents | de7fa2316913 |
children | 55bd11e07d9f |
comparison
equal
deleted
inserted
replaced
789:380a07e4fc15 | 790:53425d598585 |
---|---|
1606 call write_external_eeprom ; write WREG into external memory | 1606 call write_external_eeprom ; write WREG into external memory |
1607 | 1607 |
1608 movff gaslist_active,WREG ; "Gas active" flag register | 1608 movff gaslist_active,WREG ; "Gas active" flag register |
1609 call write_external_eeprom ; write WREG into external memory | 1609 call write_external_eeprom ; write WREG into external memory |
1610 | 1610 |
1611 clrf WREG | 1611 movff on_time_seconds+0,xC+0 |
1612 call write_external_eeprom ; Spare1 | 1612 movff on_time_seconds+1,xC+1 |
1613 movff on_time_seconds+2,xC+2 | |
1614 clrf xC+4 | |
1615 movlw LOW .3600 | |
1616 movwf xB+0 | |
1617 movlw HIGH .3600 | |
1618 movwf xB+1 | |
1619 call div32x16 ; xC:4 / xB:2 = xC+3:xC+2 with xC+1:xC+0 as remainder | |
1620 movf xC+0,W | |
1621 call write_external_eeprom ; Full hours of on-time since last full charge | |
1613 | 1622 |
1614 movlw 0xFB ; Header stop | 1623 movlw 0xFB ; Header stop |
1615 call write_external_eeprom | 1624 call write_external_eeprom |
1616 movlw 0xFB | 1625 movlw 0xFB |
1617 call write_external_eeprom | 1626 call write_external_eeprom |