Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/start.asm @ 236:3dbeacf42e9e
BUGFIX missing deko init in reboot code.
+ Typo in ppN2 name.
author | JeanDo |
---|---|
date | Sat, 19 Mar 2011 15:15:17 +0100 |
parents | ade0848c8b8b |
children | 3ed240d60341 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm Sat Mar 19 11:34:32 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/start.asm Sat Mar 19 15:15:17 2011 +0100 @@ -73,15 +73,22 @@ endif ; reset deco data - clrf WREG ; Use as buffer - movff WREG,char_I_He_ratio ; No He at the Surface + ostc_debug '0' ; Sends debug-information to screen if debugmode active + movlw d'79' ; 79% N2 movff WREG,char_I_N2_ratio ; No He at the Surface - movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine + clrf WREG ; Use as buffer + movff WREG,char_I_He_ratio ; No He at the Surface + movff WREG,char_I_step_is_1min ; 2 second deco mode + GETCUSTOM8 d'11' ; Saturation multiplier % + movff WREG,char_I_saturation_multiplier + GETCUSTOM8 d'12' ; Desaturation multiplier % + movff WREG,char_I_desaturation_multiplier + movff amb_pressure+0,int_I_pres_respiration+0 ; copy for deco routine movff amb_pressure+1,int_I_pres_respiration+1 + movff amb_pressure+0,int_I_pres_surface+0 ; copy for desat routine + movff amb_pressure+1,int_I_pres_surface+1 - clrf WREG - movff WREG,char_I_step_is_1min ; 2 second deco mode call deco_clear_tissue ; call deco_calc_desaturation_time ; calculate desaturation time call deco_clear_CNS_fraction ; clear CNS