comparison src/divemode.asm @ 134:4574aed5cd4c

Show clock in Apnea mode, minor layout changes in Apnea mode
author heinrichsweikamp
date Tue, 15 Jul 2014 10:20:37 +0200
parents 35b9da423de6
children 28b057aa9f75
comparison
equal deleted inserted replaced
133:939f1e83c4c2 134:4574aed5cd4c
77 call calc_deko_divemode ; calculate decompression and display result (any two seconds) 77 call calc_deko_divemode ; calculate decompression and display result (any two seconds)
78 bra diveloop_loop1x ; Common Tasks 78 bra diveloop_loop1x ; Common Tasks
79 79
80 diveloop_loop1b: 80 diveloop_loop1b:
81 ; Tasks only for Apnoe mode 81 ; Tasks only for Apnoe mode
82 call divemode_check_for_warnings ; Check for any warnings
83 rcall divemode_apnoe_tasks ; 1 sec. Apnoe tasks 82 rcall divemode_apnoe_tasks ; 1 sec. Apnoe tasks
83 call customview_second ; Do every-second tasks for the custom view area
84 ; call divemode_check_for_warnings ; Check for any warnings
84 bra diveloop_loop1x ; Common Tasks 85 bra diveloop_loop1x ; Common Tasks
85 86
86 diveloop_loop1x: 87 diveloop_loop1x:
87 ; Common 1sec. tasks for all modes 88 ; Common 1sec. tasks for all modes
88 rcall timeout_divemode ; dive finished? This routine sets the required flags 89 rcall timeout_divemode ; dive finished? This routine sets the required flags
149 bra diveloop_loop ; Loop the divemode 150 bra diveloop_loop ; Loop the divemode
150 ;-------------------------------------------------------------------------------------------------------- 151 ;--------------------------------------------------------------------------------------------------------
151 152
152 153
153 divemode_apnoe_tasks: ; 1 sec. Apnoe tasks 154 divemode_apnoe_tasks: ; 1 sec. Apnoe tasks
154 call TFT_display_apnoe_descent ; Show descent timer 155 call TFT_display_apnoe_descent ; Yes, Show descent timer
155 call TFT_max_pressure ; use normal max. depth 156 call TFT_max_pressure ; use normal max. depth
156 157
157 btfsc divemode2 ; Time running? 158 btfsc divemode2 ; Time running?
158 bra divemode_apnoe_tasks2 ; New descent, reset data if flag is set 159 bra divemode_apnoe_tasks2 ; New descent, reset data if flag is set
159 160