comparison src/divemode.asm @ 403:6e60012bb3fc

NEW: "Lost Gas" feature allows disabling gases during the dive
author heinrichsweikamp
date Sun, 10 Jan 2016 11:24:33 +0100
parents db25f2028074
children eccae727702f
comparison
equal deleted inserted replaced
402:a3a0f1fd7fc4 403:6e60012bb3fc
1489 btfss FLAG_ccr_mode 1489 btfss FLAG_ccr_mode
1490 rcall dive_boot_oc 1490 rcall dive_boot_oc
1491 btfsc FLAG_ccr_mode 1491 btfsc FLAG_ccr_mode
1492 rcall dive_boot_cc 1492 rcall dive_boot_cc
1493 1493
1494 ; Copy opt_dil_types into backup (For "lost gas" feature)
1495 movff opt_dil_type+0,opt_dil_type_backup+0 ; 0=Disabled, 1=First, 2=Normal
1496 movff opt_dil_type+1,opt_dil_type_backup+1 ; 0=Disabled, 1=First, 2=Normal
1497 movff opt_dil_type+2,opt_dil_type_backup+2 ; 0=Disabled, 1=First, 2=Normal
1498 movff opt_dil_type+3,opt_dil_type_backup+3 ; 0=Disabled, 1=First, 2=Normal
1499 movff opt_dil_type+4,opt_dil_type_backup+4 ; 0=Disabled, 1=First, 2=Normal
1500 ; Copy opt_gas_types into backup (For "lost gas" feature)
1501 movff opt_gas_type+0,opt_gas_type_backup+0 ; 0=Disabled, 1=First, 2=Travel, 3=Deco
1502 movff opt_gas_type+1,opt_gas_type_backup+1 ; 0=Disabled, 1=First, 2=Travel, 3=Deco
1503 movff opt_gas_type+2,opt_gas_type_backup+2 ; 0=Disabled, 1=First, 2=Travel, 3=Deco
1504 movff opt_gas_type+3,opt_gas_type_backup+3 ; 0=Disabled, 1=First, 2=Travel, 3=Deco
1505 movff opt_gas_type+4,opt_gas_type_backup+4 ; 0=Disabled, 1=First, 2=Travel, 3=Deco
1506 ; Also copy change depths into backup (For "lost gas" feature)
1507 movff opt_OC_bail_gas_change+0,opt_OC_bail_gas_change_backup+0 ; Gas change depths OC/Bailout
1508 movff opt_OC_bail_gas_change+1,opt_OC_bail_gas_change_backup+1 ; Gas change depths OC/Bailout
1509 movff opt_OC_bail_gas_change+2,opt_OC_bail_gas_change_backup+2 ; Gas change depths OC/Bailout
1510 movff opt_OC_bail_gas_change+3,opt_OC_bail_gas_change_backup+3 ; Gas change depths OC/Bailout
1511 movff opt_OC_bail_gas_change+4,opt_OC_bail_gas_change_backup+4 ; Gas change depths OC/Bailout
1512
1494 bcf better_gas_available ;=1: A better gas is available and a gas change is advised in divemode 1513 bcf better_gas_available ;=1: A better gas is available and a gas change is advised in divemode
1495 clrf better_gas_number ; Clear better gas register 1514 clrf better_gas_number ; Clear better gas register
1496 1515
1497 bcf show_safety_stop ;=1: Show the safety stop 1516 bcf show_safety_stop ;=1: Show the safety stop
1498 clrf safety_stop_countdown ; Clear count-down 1517 clrf safety_stop_countdown ; Clear count-down