diff code_part1/OSTC_code_asm_part1/simulator.asm @ 290:4dbff2aa31ee

Hunting for refusing to ignore disabled gas in list... + Keep gaslist in order.
author JeanDo
date Fri, 22 Apr 2011 00:13:39 +0200
parents 8514588eb6a2
children 21a0f7393468
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/simulator.asm	Thu Apr 21 20:09:09 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/simulator.asm	Fri Apr 22 00:13:39 2011 +0200
@@ -243,34 +243,10 @@
     btfsc   FLAG_const_ppO2_mode        ; In CCR mode ?
     bra     simulator_show_decoplan4    ; YES: finished.
 
-    ; Re-read gas change depth, from the unsorted list.
-    movlw   .33                         ; First gas.
-    movwf   EEADR
+    ; Make sure to pass first gas
     clrf    EEADRH
-    call    read_eeprom
+    read_int_eeprom .33                 ; First gas.
     movff   EEDATA,char_I_first_gas
-    
-    movlw   .27                         ; Active flags.
-    movwf   EEADR
-    call    read_eeprom
-    movff   EEDATA,waitms_temp          ; Save activity flags.
-    incf    EEADR,F                     ; 28 == Gas#1's change depth.
-
-    lfsr    FSR2,char_I_deco_gas_change
-    movlw   5
-    movwf   wait_temp
-
-simulator_show_decoplan5_4:
-    call    read_eeprom
-    incf    EEADR,F
-    
-    rrcf    waitms_temp                 ; Roll acticity to cary.
-    btfss   STATUS,C
-    clrf    EEDATA                      ; If not active, set depth=0
-
-    movff   EEDATA,POSTINC2             ; Write that in depth array.
-    decfsz  wait_temp
-    bra     simulator_show_decoplan5_4
 
     ; Compute gas consumption for each tank.
     call    deco_gas_volumes