comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 664:9c13bf8a3033

Ignore decoplanner in gauge and apnoe mode
author heinrichsweikamp
date Wed, 14 Nov 2012 12:02:14 +0100
parents d7eeaffd8fc1
children 6e456a6398e0
comparison
equal deleted inserted replaced
663:64194a3c8d5b 664:9c13bf8a3033
332 332
333 ;============================================================================= 333 ;=============================================================================
334 ; OSTC Simulator: compute a new runtime 334 ; OSTC Simulator: compute a new runtime
335 ; 335 ;
336 simulator_calc_deco: 336 simulator_calc_deco:
337 btfsc gauge_mode ; In Gauge mode?
338 bra menu_simulator ; Yes, igonore decoplaner
339 btfsc FLAG_apnoe_mode ; In Apnoe mode?
340 bra menu_simulator ; Yes, igonore decoplaner
341
337 call simulator_save_tissue_data ; Stores 32 floats "pre_tissue" into bank3 342 call simulator_save_tissue_data ; Stores 32 floats "pre_tissue" into bank3
338 343
339 movff char_I_dive_interval,WREG ; Any interval ? 344 movff char_I_dive_interval,WREG ; Any interval ?
340 iorlw 0 ; Test for null 345 iorlw 0 ; Test for null
341 btfss STATUS,Z 346 btfss STATUS,Z