comparison src/ghostwriter.asm @ 629:237931377539

3.07 stable release
author heinrichsweikamp
date Fri, 29 Nov 2019 18:48:11 +0100
parents cd58f7fc86db
children 185ba2f91f59
comparison
equal deleted inserted replaced
628:cd58f7fc86db 629:237931377539
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File ghostwriter.asm combined next generation V3.03.7 3 ; File ghostwriter.asm combined next generation V3.06.2
4 ; 4 ;
5 ; Ghostwriter (Log profile recorder) 5 ; Ghostwriter (Log profile recorder)
6 ; 6 ;
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
1093 change_logbook_offset1: 1093 change_logbook_offset1:
1094 INCI mpr ; increment offset 1094 INCI mpr ; increment offset
1095 call do_logoffset_common_write ; write incremented offset as the new offset 1095 call do_logoffset_common_write ; write incremented offset as the new offset
1096 1096
1097 change_logbook_offset2: 1097 change_logbook_offset2:
1098 clrf mpr+0 ; prepare a 4 byte null value to clear the last dive time
1099 clrf mpr+1 ; ...
1100 clrf mpr+2 ; ...
1101 clrf mpr+3 ; ...
1102 SMOVFF mpr,lastdive_time ; ISR-safe 4 byte copy of null value to last dive time counter
1103
1104
1105 ; ISR-safe 3 byte copy of minutes:2 and seconds to last dive duration 1098 ; ISR-safe 3 byte copy of minutes:2 and seconds to last dive duration
1106 SMOVTT counted_divetime_mins,lastdive_duration 1099 SMOVTT counted_divetime_mins,lastdive_duration
1107 1100
1108 ; 2 byte copies of max and avg relative pressures to last dive data 1101 ; 2 byte copies of max and avg relative pressures to last dive data
1109 MOVII pressure_rel_max_cached,lastdive_maxdepth 1102 MOVII pressure_rel_max_cached,lastdive_maxdepth