Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 816:df8cd5ffd993
BUGFIX: Load first diluent if <> 1 correctly
Auto-SP change work...
author | heinrichsweikamp |
---|---|
date | Sat, 16 May 2015 14:48:26 +0200 |
parents | 2a0e5d884fc3 |
children | 3d9f56e0d18c |
comparison
equal
deleted
inserted
replaced
815:2a0e5d884fc3 | 816:df8cd5ffd993 |
---|---|
1501 movf EEDATA,W | 1501 movf EEDATA,W |
1502 call write_external_eeprom | 1502 call write_external_eeprom |
1503 | 1503 |
1504 movlw .33 ; Start gas | 1504 movlw .33 ; Start gas |
1505 btfsc FLAG_const_ppO2_mode ; In CCR mode? | 1505 btfsc FLAG_const_ppO2_mode ; In CCR mode? |
1506 movlw .116 ; Yes, use start Diluent instead | 1506 movlw .115 ; Yes, use start Diluent instead |
1507 movwf EEADR | 1507 movwf EEADR |
1508 call read_eeprom | 1508 call read_eeprom |
1509 movf EEDATA,W | 1509 movf EEDATA,W |
1510 call write_external_eeprom | 1510 call write_external_eeprom |
1511 | 1511 |
2186 movlw d'100' ; 100% | 2186 movlw d'100' ; 100% |
2187 subfwb wait_temp,W ; minus He | 2187 subfwb wait_temp,W ; minus He |
2188 bsf STATUS,C ; Borrow bit | 2188 bsf STATUS,C ; Borrow bit |
2189 subfwb lo,W ; minus O2 | 2189 subfwb lo,W ; minus O2 |
2190 movff WREG, char_I_N2_ratio ; = N2! | 2190 movff WREG, char_I_N2_ratio ; = N2! |
2191 read_int_eeprom d'116' ; Read First Diluent (1-5) | 2191 read_int_eeprom d'115' ; Read First Diluent (1-5) |
2192 movff EEDATA,active_diluent | 2192 movff EEDATA,active_diluent |
2193 return | 2193 return |