Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 612:ec2cfd4b748b
Blink better gas in bailout case (if CF42=1)
author | heinrichsweikamp |
---|---|
date | Sun, 15 Jul 2012 11:42:30 +0200 |
parents | 530a5c994ca2 |
children | 3ab53b57f879 |
comparison
equal
deleted
inserted
replaced
611:99c601c24065 | 612:ec2cfd4b748b |
---|---|
1151 movlw better_gas_window | 1151 movlw better_gas_window |
1152 subwf EEDATA,W ; Change depth-better_gas_window | 1152 subwf EEDATA,W ; Change depth-better_gas_window |
1153 cpfslt xC+0 ; current depth<Change depth-better_gas_window? | 1153 cpfslt xC+0 ; current depth<Change depth-better_gas_window? |
1154 bsf better_gas_available ;=1: A better gas is available and a gas change is advised in divemode | 1154 bsf better_gas_available ;=1: A better gas is available and a gas change is advised in divemode |
1155 | 1155 |
1156 check_gas_change6: ;Done | 1156 check_gas_change6: |
1157 btfsc is_bailout ;=1: CC mode, but bailout active! | |
1158 bra check_gas_change7 ; In bailout, blink better gas (if required) | |
1159 | |
1157 btfsc FLAG_const_ppO2_mode ; in ppO2 mode? | 1160 btfsc FLAG_const_ppO2_mode ; in ppO2 mode? |
1158 bcf better_gas_available ; Yes, do not blink better gas | 1161 bcf better_gas_available ; Yes, do not blink better gas |
1159 | 1162 |
1163 check_gas_change7: | |
1160 call PLED_active_gas_divemode; Display gas, if required (and with "*" if required...) | 1164 call PLED_active_gas_divemode; Display gas, if required (and with "*" if required...) |
1161 return | 1165 return |
1162 | 1166 |
1163 ;============================================================================= | 1167 ;============================================================================= |
1164 | 1168 |