Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode.asm @ 353:b5b030c1ae7e
Avoid spurious switch-depth stops with 3 or more gas.
author | JeanDo |
---|---|
date | Tue, 07 Jun 2011 01:16:55 +0200 |
parents | ed137d66ac65 |
children | 88660a400338 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm Mon May 30 19:28:59 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Tue Jun 07 01:16:55 2011 +0200 @@ -1777,6 +1777,7 @@ set_first_gas: read_int_eeprom d'33' ; Read byte (stored in EEDATA) movff EEDATA,active_gas ; Read start gas (1-5) + movff EEDATA,char_I_current_gas decf active_gas,W ; Gas 0-4 mullw d'4'