comparison 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
comparison
equal deleted inserted replaced
349:ed137d66ac65 353:b5b030c1ae7e
1775 1775
1776 ; Read Start Gas and configure char_I_He_ratio, char_I_O2_ratio and char_I_N2_ratio 1776 ; Read Start Gas and configure char_I_He_ratio, char_I_O2_ratio and char_I_N2_ratio
1777 set_first_gas: 1777 set_first_gas:
1778 read_int_eeprom d'33' ; Read byte (stored in EEDATA) 1778 read_int_eeprom d'33' ; Read byte (stored in EEDATA)
1779 movff EEDATA,active_gas ; Read start gas (1-5) 1779 movff EEDATA,active_gas ; Read start gas (1-5)
1780 movff EEDATA,char_I_current_gas
1780 1781
1781 decf active_gas,W ; Gas 0-4 1782 decf active_gas,W ; Gas 0-4
1782 mullw d'4' 1783 mullw d'4'
1783 movf PRODL,W 1784 movf PRODL,W
1784 addlw d'7' ; = address for He ratio 1785 addlw d'7' ; = address for He ratio