comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 203:2d9af08ed0ac

BUGFIX Gas switch + To implement gas switch, the ascent engine have to know about dive duration.
author JeanDo
date Fri, 18 Feb 2011 00:23:51 +0100
parents f15e804ff67f
children f60acc323701
comparison
equal deleted inserted replaced
202:667700d09fff 203:2d9af08ed0ac
458 movff WREG,char_I_desaturation_multiplier 458 movff WREG,char_I_desaturation_multiplier
459 GETCUSTOM8 d'16' ; Deco distance to decostop in 1/10 meter for simulation 459 GETCUSTOM8 d'16' ; Deco distance to decostop in 1/10 meter for simulation
460 movff WREG,char_I_deco_distance 460 movff WREG,char_I_deco_distance
461 GETCUSTOM8 d'29' ; Depth Last Deco in meter for simulation 461 GETCUSTOM8 d'29' ; Depth Last Deco in meter for simulation
462 movff WREG,char_I_depth_last_deco 462 movff WREG,char_I_depth_last_deco
463 movff divemins+0,int_I_divemins+0 ; Current dive time.
464 movff divemins+1,int_I_divemins+1
463 goto restart_set_modes_and_flags ; Sets decomode (char_I_deco_model) and flags (again) 465 goto restart_set_modes_and_flags ; Sets decomode (char_I_deco_model) and flags (again)
464 466
465 calc_deko_divemode3: 467 calc_deko_divemode3:
466 btfss dekostop_active 468 btfss dekostop_active
467 call PLED_display_deko_mask ; clear nostop time, display decodata 469 call PLED_display_deko_mask ; clear nostop time, display decodata