comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 525:f9a03808dfe2

moving "bailout" on top of setpoint list
author heinrichsweikamp
date Sat, 10 Dec 2011 16:07:50 +0100
parents a73a452ca155
children 67ab3c028bc2
comparison
equal deleted inserted replaced
524:6fa776a44768 525:f9a03808dfe2
207 dcfsnz WREG,F 207 dcfsnz WREG,F
208 bra divemode_menu3_nothing ; Graphs... 208 bra divemode_menu3_nothing ; Graphs...
209 dcfsnz WREG,F 209 dcfsnz WREG,F
210 bra divemode_menu3_nothing ; END/EAD in divemode 210 bra divemode_menu3_nothing ; END/EAD in divemode
211 dcfsnz WREG,F 211 dcfsnz WREG,F
212 bra divemode_menu3_nothing ; Futur TTS... 212 bra divemode_menu3_nothing ; Future TTS...
213 dcfsnz WREG,F 213 dcfsnz WREG,F
214 bra toggle_stopwatch ; Cave bailout prediction. 214 bra toggle_stopwatch ; Cave bailout prediction.
215 215
216 divemode_menu3_nothing: 216 divemode_menu3_nothing:
217 bra timeout_divemenu2 ; Quit divemode menu 217 bra timeout_divemenu2 ; Quit divemode menu
619 ; Yes, so select SP 1-3 619 ; Yes, so select SP 1-3
620 bcf is_bailout ;=1: CC mode, but bailout active! 620 bcf is_bailout ;=1: CC mode, but bailout active!
621 call PLED_show_ppO2_clear ; Clear ppO2 value 621 call PLED_show_ppO2_clear ; Clear ppO2 value
622 622
623 divemenu_set_gas1: 623 divemenu_set_gas1:
624 movlw d'4' 624 movlw d'1'
625 cpfseq menupos ; At the "Bailout" position? 625 cpfseq menupos ; At the "Bailout" position?
626 bra divemenu_set_gas1b ; No, select SetPoint 1-3 626 bra divemenu_set_gas1b ; No, select SetPoint 1-3
627 bsf select_bailoutgas ; Set Flag 627 bsf select_bailoutgas ; Set Flag
628 bcf display_set_setpoint ; Clear Flag 628 bcf display_set_setpoint ; Clear Flag
629 bra divemenu_set_gas_2 ; Configure the extra gas / Select Bailout 629 bra divemenu_set_gas_2 ; Configure the extra gas / Select Bailout
630 630
631 divemenu_set_gas1b: 631 divemenu_set_gas1b:
632 decf menupos,F ; Adjust 1-3 to 0-2...
632 movlw d'35' ; offset in memory 633 movlw d'35' ; offset in memory
633 addwf menupos,W ; add SP number 0-2 634 addwf menupos,W ; add SP number 0-2
634 movwf EEADR 635 movwf EEADR
635 call read_eeprom ; Read SetPoint 636 call read_eeprom ; Read SetPoint
636 movff EEDATA, char_I_const_ppO2 ; Use SetPoint 637 movff EEDATA, char_I_const_ppO2 ; Use SetPoint