comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 115:50a06adabc67

First gas is active, Gauge mode display
author heinrichsweikamp
date Fri, 24 Dec 2010 15:40:27 +0100
parents 9500f431248a
children f24137eb85de
comparison
equal deleted inserted replaced
114:e39a6415df3d 115:50a06adabc67
209 call PLED_active_gas_divemode ; Display gas, if required 209 call PLED_active_gas_divemode ; Display gas, if required
210 call PLED_temp_divemode ; Displays temperature 210 call PLED_temp_divemode ; Displays temperature
211 call PLED_depth ; Displays new depth... 211 call PLED_depth ; Displays new depth...
212 call PLED_max_pressure ; ...and max. depth 212 call PLED_max_pressure ; ...and max. depth
213 213
214 btfsc FLAG_apnoe_mode ; Ignore in Apnoe mode
215 bra timeout_divemenu2 ; quit menu!
216 btfsc gauge_mode ; Ignore in Gauge mode
217 bra timeout_divemenu2 ; quit menu!
218
219 ; Redraw Outputs in Deco modes
220 btfsc dekostop_active
221 call PLED_display_deko_mask ; clear nostop time, display decodata
222 btfss dekostop_active
223 call PLED_display_ndl_mask ; Clear deco data, display nostop time
224 bra timeout_divemenu2 ; quit menu! 214 bra timeout_divemenu2 ; quit menu!
225 215
226 divemode_set_xgas: ; Set the extra gas... 216 divemode_set_xgas: ; Set the extra gas...
227 bsf display_set_xgas ; Set Flag 217 bsf display_set_xgas ; Set Flag
228 bcf display_set_gas ; Clear Flag 218 bcf display_set_gas ; Clear Flag
619 incf timeout_counter3,F ; increase timeout_counter3 609 incf timeout_counter3,F ; increase timeout_counter3
620 GETCUSTOM8 d'10' ; loads timeout_divemenu into WREG 610 GETCUSTOM8 d'10' ; loads timeout_divemenu into WREG
621 cpfsgt timeout_counter3 ; ... longer then timeout_divemenu 611 cpfsgt timeout_counter3 ; ... longer then timeout_divemenu
622 return ; No! 612 return ; No!
623 timeout_divemenu2: ; quit divemode menu 613 timeout_divemenu2: ; quit divemode menu
624 btfss multi_gf_display ; Was the Multi-GF Table displayed? 614 ; btfss multi_gf_display ; Was the Multi-GF Table displayed?
625 bra timeout_divemenu2a ; No, normal OLED rebuild 615 ; bra timeout_divemenu2a ; No, normal OLED rebuild
626 616
627 ; Restore some outputs 617 ; Restore some outputs
628 clrf temp8 ; Page 0-1 of deco list 618 clrf temp8 ; Page 0-1 of deco list
619
620 btfsc FLAG_apnoe_mode ; Ignore in Apnoe mode
621 bra timeout_divemenu2a ; skip!
622 btfsc gauge_mode ; Ignore in Gauge mode
623 bra timeout_divemenu2a ; skip!
624
629 btfsc dekostop_active 625 btfsc dekostop_active
630 call PLED_display_deko_mask ; clear nostop time, display decodata 626 call PLED_display_deko_mask ; clear nostop time, display decodata
631 btfss dekostop_active 627 btfss dekostop_active
632 call PLED_display_ndl_mask ; Clear deco data, display nostop time 628 call PLED_display_ndl_mask ; Clear deco data, display nostop time
633 629
637 bcf premenu ; Yes, clear flags and menu, display dive time and mask again 633 bcf premenu ; Yes, clear flags and menu, display dive time and mask again
638 call PLED_active_gas_divemode; Display gas, if required 634 call PLED_active_gas_divemode; Display gas, if required
639 call PLED_clear_divemode_menu; Clear dive mode menu 635 call PLED_clear_divemode_menu; Clear dive mode menu
640 call PLED_divemode_mask ; Display mask 636 call PLED_divemode_mask ; Display mask
641 call PLED_divemins ; Display (new) divetime! 637 call PLED_divemins ; Display (new) divetime!
642 btfss dekostop_active
643 call PLED_display_ndl_mask
644 btfsc dekostop_active
645 call PLED_display_deko_mask
646 call customview_mask ; Redraw current customview mask 638 call customview_mask ; Redraw current customview mask
647 clrf timeout_counter3 ; Also clear timeout 639 clrf timeout_counter3 ; Also clear timeout
648 bcf display_see_deco ; clear all display flags 640 bcf display_see_deco ; clear all display flags
649 bcf display_set_gas 641 bcf display_set_gas
650 bcf display_set_xgas 642 bcf display_set_xgas