comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 240:d995e220ddac

BUGFIX Gas Usage when first gas is not #1 (bug BB22).
author JeanDo
date Mon, 21 Mar 2011 23:27:46 +0100
parents 3dbeacf42e9e
children a9f8c87dda06
comparison
equal deleted inserted replaced
239:3ed240d60341 240:d995e220ddac
238 bcf display_see_deco ; clear flag 238 bcf display_see_deco ; clear flag
239 239
240 btfsc FLAG_const_ppO2_mode ; In CCR mode ? 240 btfsc FLAG_const_ppO2_mode ; In CCR mode ?
241 bra simulator_show_decoplan4 ; YES: finished. 241 bra simulator_show_decoplan4 ; YES: finished.
242 242
243 ; Re-read gas change depth, from the unsorted list. 243 ; Re-read gas change depth, from the unsorted list.
244 movlw .33 ; First gas.
245 movwf EEADR
246 clrf EEADRH
247 call read_eeprom
248 movff EEDATA,char_I_first_gas
249
244 movlw .27 ; Active flags. 250 movlw .27 ; Active flags.
245 movwf EEADR 251 movwf EEADR
246 clrf EEADRH
247 call read_eeprom 252 call read_eeprom
248 movff EEDATA,waitms_temp ; Save activity flags. 253 movff EEDATA,waitms_temp ; Save activity flags.
249 incf EEADR,F ; 28 == Gas#1's change depth. 254 incf EEADR,F ; 28 == Gas#1's change depth.
250 255
251 lfsr FSR2,char_I_deco_gas_change 256 lfsr FSR2,char_I_deco_gas_change