comparison src/divemode.asm @ 38:64976f1e0a1c

Show total divetime in apnea mode
author mh@mh-THINK.fritz.box
date Thu, 15 Aug 2013 13:30:05 +0200
parents eca4a201d8cf
children e4e91fe8b09d
comparison
equal deleted inserted replaced
37:0e1723f2761e 38:64976f1e0a1c
136 call TFT_dump_screen ; Dump the screen contents 136 call TFT_dump_screen ; Dump the screen contents
137 diveloop_loop6: 137 diveloop_loop6:
138 138
139 bra diveloop_loop ; Loop the divemode 139 bra diveloop_loop ; Loop the divemode
140 ;-------------------------------------------------------------------------------------------------------- 140 ;--------------------------------------------------------------------------------------------------------
141
142
143
144
145 141
146 142
147 divemode_apnoe_tasks: ; 1 sec. Apnoe tasks 143 divemode_apnoe_tasks: ; 1 sec. Apnoe tasks
148 call TFT_display_apnoe_descent ; Show descent timer 144 call TFT_display_apnoe_descent ; Show descent timer
149 call TFT_max_pressure ; use normal max. depth 145 call TFT_max_pressure ; use normal max. depth
1084 movwf apnoe_max_pressure+0 1080 movwf apnoe_max_pressure+0
1085 clrf apnoe_max_pressure+1 1081 clrf apnoe_max_pressure+1
1086 clrf apnoe_surface_mins 1082 clrf apnoe_surface_mins
1087 clrf apnoe_surface_secs 1083 clrf apnoe_surface_secs
1088 clrf apnoe_mins 1084 clrf apnoe_mins
1089 clrf apnoe_secs 1085 movlw .2
1086 movwf apnoe_secs
1090 clrf divemins+0 1087 clrf divemins+0
1091 clrf divemins+1 1088 clrf divemins+1
1092 bcf no_more_divesecs ; =1: Do no longer show seconds in divemode 1089 bcf no_more_divesecs ; =1: Do no longer show seconds in divemode
1093 bcf divemode_menu_active 1090 bcf divemode_menu_active
1094 clrf menupos 1091 clrf menupos