comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 66:6aee3a07f370

1.71beta in work...
author heinrichsweikamp
date Thu, 07 Oct 2010 21:07:24 +0200
parents e8756eba54ee
children d0b677e1e9a5
comparison
equal deleted inserted replaced
65:5ad68065e4e6 66:6aee3a07f370
702 702
703 btfsc multi_gf_display ; display the multi-gf table screen? 703 btfsc multi_gf_display ; display the multi-gf table screen?
704 bra timeout_divemenu3 ; Yes... 704 bra timeout_divemenu3 ; Yes...
705 705
706 movff char_O_deco_status,deco_status ; 706 movff char_O_deco_status,deco_status ;
707 tstfsz deco_status ; deco_status=0 if decompression calculation done 707 tstfsz deco_status ; deco_status=0 if decompression calculation done
708 bra timeout_divemenu1 ; No, skip updating the decoplan 708 bra timeout_divemenu1 ; No, skip updating the decoplan
709 709
710 call PLED_decoplan ; update the Decoplan 710 call PLED_decoplan ; update the Decoplan
711 711
712 timeout_divemenu1: 712 timeout_divemenu1:
713 incf timeout_counter3,F ; increase timeout_counter3 713 incf timeout_counter3,F ; increase timeout_counter3
714 GETCUSTOM8 d'10' ; loads timeout_divemenu into WREG 714 GETCUSTOM8 d'10' ; loads timeout_divemenu into WREG
715 cpfsgt timeout_counter3 ; ... longer then timeout_divemenu 715 cpfsgt timeout_counter3 ; ... longer then timeout_divemenu
716 return ; No! 716 return ; No!
717 timeout_divemenu2: ; quit divemode menu 717 timeout_divemenu2: ; quit divemode menu
718 btfss multi_gf_display ; Was the Multi-GF Table displayed? 718 btfss multi_gf_display ; Was the Multi-GF Table displayed?
719 bra timeout_divemenu2a ; No, normal OLED rebuild 719 bra timeout_divemenu2a ; No, normal OLED rebuild
720 720
721 ; Restore some outputs 721 ; Restore some outputs
722 bcf multi_gf_display ; Do not display the multi-gf table screen 722 clrf temp8 ; Page 0-1 of deco list
723 btfsc dekostop_active 723 btfsc dekostop_active
724 call PLED_display_deko_mask ; clear nostop time, display decodata 724 call PLED_display_deko_mask ; clear nostop time, display decodata
725 btfss dekostop_active 725 btfss dekostop_active
726 call PLED_display_ndl_mask ; Clear deco data, display nostop time 726 call PLED_display_ndl_mask ; Clear deco data, display nostop time
727 727
728 timeout_divemenu2a: 728 timeout_divemenu2a:
729 bcf multi_gf_display ; Do not display the multi-gf table screen 729 bcf multi_gf_display ; Do not display the multi-gf table screen
730 bcf menubit 730 bcf menubit
731 bcf premenu ; Yes, clear flags and menu, display dive time and mask again 731 bcf premenu ; Yes, clear flags and menu, display dive time and mask again
732 call PLED_active_gas_divemode ; Display gas, if required 732 call PLED_active_gas_divemode; Display gas, if required
733 call PLED_clear_divemode_menu; Clear dive mode menu 733 call PLED_clear_divemode_menu; Clear dive mode menu
734 call PLED_divemode_mask ; Display mask 734 call PLED_divemode_mask ; Display mask
735 call PLED_divemins ; Display (new) divetime! 735 call PLED_divemins ; Display (new) divetime!
736 clrf timeout_counter3 ; Also clear timeout 736 clrf timeout_counter3 ; Also clear timeout
737 bcf display_see_deco ; clear all display flags 737 bcf display_see_deco ; clear all display flags