Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 623:3f1a85ce7785
v2.50 rc2
author | heinrichsweikamp |
---|---|
date | Wed, 08 Aug 2012 13:28:10 +0200 |
parents | f87205426add |
children | bab5a9fc1b10 |
comparison
equal
deleted
inserted
replaced
622:f87205426add | 623:3f1a85ce7785 |
---|---|
91 | 91 |
92 ; Tasks only for Gauge mode | 92 ; Tasks only for Gauge mode |
93 diveloop_loop1a: | 93 diveloop_loop1a: |
94 btfss premenu ; Is the divemode menu active? | 94 btfss premenu ; Is the divemode menu active? |
95 call PLED_divemins ; display (new) divetime! | 95 call PLED_divemins ; display (new) divetime! |
96 call customview_second ; Do every-second tasks for the custom view area | |
96 call timeout_divemode ; dive finished? This routine sets the required flags | 97 call timeout_divemode ; dive finished? This routine sets the required flags |
97 | 98 |
98 btfsc twosecupdate ; two seconds after the last call | 99 btfsc twosecupdate ; two seconds after the last call |
99 bra diveloop_loop1a2 ; Common Tasks | 100 bra diveloop_loop1a2 ; Common Tasks |
100 | 101 |
211 call PLED_divemode_mask ; And redraw mask (Redraw missing "T" from "Tauchzeit" in german text version) | 212 call PLED_divemode_mask ; And redraw mask (Redraw missing "T" from "Tauchzeit" in german text version) |
212 call PLED_divemins ; Redraw divetime | 213 call PLED_divemins ; Redraw divetime |
213 return | 214 return |
214 | 215 |
215 divemode_apnoe_tasks: ; 1 sec. Apnoe tasks | 216 divemode_apnoe_tasks: ; 1 sec. Apnoe tasks |
217 call PLED_divemins ; display (new) divetime! | |
216 call PLED_display_apnoe_descent ; Show descent timer | 218 call PLED_display_apnoe_descent ; Show descent timer |
217 | 219 |
218 btfsc divemode2 ; Time running? | 220 btfsc divemode2 ; Time running? |
219 bra divemode_apnoe_tasks2 ; New descent, reset data if flag is set | 221 bra divemode_apnoe_tasks2 ; New descent, reset data if flag is set |
220 | 222 |