Mercurial > public > hwos_code
comparison src/menu_tree.asm @ 507:4e6f5c36f4cc
NEW: Two ppO2 max settings. One for travel/bottom and one for deco gases
author | heinrichsweikamp |
---|---|
date | Tue, 27 Jun 2017 13:50:42 +0200 |
parents | bef07a837a60 |
children | 8e75aecb3290 |
comparison
equal
deleted
inserted
replaced
506:b9f06f1a1f74 | 507:4e6f5c36f4cc |
---|---|
308 MENU_CALL tDecoparameters, do_decoparameters_menu | 308 MENU_CALL tDecoparameters, do_decoparameters_menu |
309 MENU_CALL tExit, do_continue_main_menu | 309 MENU_CALL tExit, do_continue_main_menu |
310 MENU_END | 310 MENU_END |
311 | 311 |
312 do_ppo2_menu: | 312 do_ppo2_menu: |
313 MENU_BEGIN tppO2settings, .4 | 313 MENU_BEGIN tppO2settings, .5 |
314 MENU_DYNAMIC divesets_ppo2_max, do_toggle_ppo2_max | 314 MENU_DYNAMIC divesets_ppo2_max, do_toggle_ppo2_max |
315 MENU_DYNAMIC divesets_ppo2_min, do_toggle_ppo2_min | 315 MENU_DYNAMIC divesets_ppo2_max_deco, do_toggle_ppo2_max_deco |
316 MENU_DYNAMIC divesets_ppo2_min, do_toggle_ppo2_min | |
316 MENU_OPTION tShowppO2, oShowppO2, 0 | 317 MENU_OPTION tShowppO2, oShowppO2, 0 |
317 MENU_CALL tExit, do_return_divemode_menu | 318 MENU_CALL tExit, do_return_divemode_menu |
318 MENU_END | 319 MENU_END |
319 | 320 |
320 do_return_decoparameters_menu: | 321 do_return_decoparameters_menu: |
565 movwf lo | 566 movwf lo |
566 do_toggle_ppo2_max2: | 567 do_toggle_ppo2_max2: |
567 movff lo,opt_ppO2_max | 568 movff lo,opt_ppO2_max |
568 return | 569 return |
569 | 570 |
571 do_toggle_ppo2_max_deco: ; add 0.1bar, with hard-coded max. | |
572 movff opt_ppO2_max_deco,lo ; banksafe | |
573 movlw .10 | |
574 addwf lo,F | |
575 movlw ppo2_highest_setting_deco | |
576 cpfsgt lo | |
577 bra do_toggle_ppo2_max_deco2 | |
578 movlw .120 | |
579 movwf lo | |
580 do_toggle_ppo2_max_deco2: | |
581 movff lo,opt_ppO2_max_deco | |
582 return | |
583 | |
570 do_toggle_ppo2_min: ; sub 0.1bar, with hard-coded min. | 584 do_toggle_ppo2_min: ; sub 0.1bar, with hard-coded min. |
571 movff opt_ppO2_min,lo ; banksafe | 585 movff opt_ppO2_min,lo ; banksafe |
572 incf lo,F | 586 incf lo,F |
573 movlw .21 | 587 movlw .21 |
574 cpfsgt lo | 588 cpfsgt lo |