comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 40:92001c045088

1.62 beta release
author heinrichsweikamp
date Wed, 02 Jun 2010 10:47:30 +0200
parents d4f0c097a7fa
children 475a9e536d77
comparison
equal deleted inserted replaced
39:1705b3f7e5b3 40:92001c045088
291 decfsz logbook_temp1,F 291 decfsz logbook_temp1,F
292 bra simulator_calc_deco_loop2 292 bra simulator_calc_deco_loop2
293 293
294 movlw d'0' 294 movlw d'0'
295 movff WREG,char_I_step_is_1min ; 2 second deco mode 295 movff WREG,char_I_step_is_1min ; 2 second deco mode
296 ; movff WREG,unused_x24B
297 296
298 movlw d'255' 297 movlw d'255'
299 movff WREG,char_O_deco_status ; Reset Deco module 298 movff WREG,char_O_deco_status ; Reset Deco module
300 299
301 ; movff char_O_deco_status,deco_status ;
302 ; tstfsz deco_status ; deco_status=0 if decompression calculation done
303 bra simulator_calc_deco2 ; Not finished 300 bra simulator_calc_deco2 ; Not finished
304 301
305 simulator_calc_deco3: 302 simulator_calc_deco3:
306 bsf LED_red 303 bsf LED_red
307 304
319 movlw d'1' 316 movlw d'1'
320 movwf logbook_temp1 ; Bottom time>0! 317 movwf logbook_temp1 ; Bottom time>0!
321 318
322 movlw d'5' ; Pre-Set Cursor to "Show Decoplan" 319 movlw d'5' ; Pre-Set Cursor to "Show Decoplan"
323 movwf menupos 320 movwf menupos
324
325 bra menu_simulator1 ; Done. 321 bra menu_simulator1 ; Done.
326 322
327 simulator_calc_deco2: 323 simulator_calc_deco2:
328 call divemode_check_decogases ; Checks for decogases and sets the gases 324 call divemode_check_decogases ; Checks for decogases and sets the gases
329 call divemode_prepare_flags_for_deco 325 call divemode_prepare_flags_for_deco