comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 159:aaa6e8720a7d

fix for simualtor restore
author heinrichsweikamp
date Tue, 18 Jan 2011 12:01:13 +0100
parents 3fd7d304a0fe
children 494587193f5d
comparison
equal deleted inserted replaced
158:3fd7d304a0fe 159:aaa6e8720a7d
233 call diveloop_boot ; configure gases, etc. 233 call diveloop_boot ; configure gases, etc.
234 234
235 bsf simulatormode_active ; normal simulator mode 235 bsf simulatormode_active ; normal simulator mode
236 bsf standalone_simulator ; Standalone Simulator active 236 bsf standalone_simulator ; Standalone Simulator active
237 237
238 movff logbook_temp2,logbook_temp3 ; store bottom time 238 movff logbook_temp1,logbook_temp3 ; store bottom time
239 239
240 movff logbook_temp2,xA+0 240 movff logbook_temp2,xA+0
241 clrf xA+1 241 clrf xA+1
242 movlw d'100' 242 movlw d'100'
243 movwf xB+0 243 movwf xB+0
320 movlw d'1' 320 movlw d'1'
321 movwf logbook_temp1 ; Bottom time>0! 321 movwf logbook_temp1 ; Bottom time>0!
322 322
323 movlw d'5' ; Pre-Set Cursor to "Show Decoplan" 323 movlw d'5' ; Pre-Set Cursor to "Show Decoplan"
324 movwf menupos 324 movwf menupos
325 movff logbook_temp3,logbook_temp2 ; restore bottom time 325 movff logbook_temp3,logbook_temp1 ; restore bottom time
326 bra menu_simulator1 ; Done. 326 bra menu_simulator1 ; Done.
327 327
328 simulator_calc_deco2: 328 simulator_calc_deco2:
329 call divemode_check_decogases ; Checks for decogases and sets the gases 329 call divemode_check_decogases ; Checks for decogases and sets the gases
330 call divemode_prepare_flags_for_deco 330 call divemode_prepare_flags_for_deco