Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 784:46ef1e1388f1
Merge
author | heinrichsweikamp |
---|---|
date | Mon, 23 Jun 2014 17:29:59 +0200 |
parents | de7fa2316913 |
children | 9eba1eb8ca38 |
comparison
equal
deleted
inserted
replaced
783:e57e8045527d | 784:46ef1e1388f1 |
---|---|
741 divemenu_set_gas1a: | 741 divemenu_set_gas1a: |
742 bcf display_set_setpoint ; Clear Display Flag | 742 bcf display_set_setpoint ; Clear Display Flag |
743 bsf stored_gas_changed ; set event flag | 743 bsf stored_gas_changed ; set event flag |
744 bsf event_occured ; set global event flag | 744 bsf event_occured ; set global event flag |
745 bsf decoplan_invalid ; The decoplan needs to updated | 745 bsf decoplan_invalid ; The decoplan needs to updated |
746 btfsc better_gas_available ; If a gas change was planned... | |
747 bsf gaschange_cnt_active ; Show the countdown | |
746 clrf WREG | 748 clrf WREG |
747 movff WREG,char_O_deco_status ; Restart decoplan computation mH | 749 movff WREG,char_O_deco_status ; Restart decoplan computation mH |
748 bra timeout_divemenu2 ; quit menu! | 750 bra timeout_divemenu2 ; quit menu! |
749 | 751 |
750 divemenu_set_gas2a: | 752 divemenu_set_gas2a: |
783 subfwb wait_temp,W ; minus He | 785 subfwb wait_temp,W ; minus He |
784 subfwb EEDATA,F ; minus O2 | 786 subfwb EEDATA,F ; minus O2 |
785 movff EEDATA, char_I_N2_ratio ; = N2! | 787 movff EEDATA, char_I_N2_ratio ; = N2! |
786 bsf stored_gas_changed ; set event flag | 788 bsf stored_gas_changed ; set event flag |
787 bsf event_occured ; set global event flag | 789 bsf event_occured ; set global event flag |
790 btfsc better_gas_available ; If a gas change was planned... | |
791 bsf gaschange_cnt_active ; Show the countdown | |
788 bsf decoplan_invalid ; The decoplan needs to updated | 792 bsf decoplan_invalid ; The decoplan needs to updated |
789 clrf WREG | 793 clrf WREG |
790 movff WREG,char_O_deco_status ; Restart decoplan computation mH | 794 movff WREG,char_O_deco_status ; Restart decoplan computation mH |
791 | 795 |
792 movff menupos,char_I_current_gas ; Inform deco code too. | 796 movff menupos,char_I_current_gas ; Inform deco code too. |