comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 341:2144f19fa1eb

BUGFIX protect against ISR changing pressure/temperature while reading it.
author JeanDo
date Fri, 20 May 2011 00:48:30 +0200
parents ceedf078b2d8
children 797e2ac42d24
comparison
equal deleted inserted replaced
340:ecbbbd423e86 341:2144f19fa1eb
279 movff wait_temp,char_I_He_ratio ; No He at the Surface 279 movff wait_temp,char_I_He_ratio ; No He at the Surface
280 movlw d'79' ; 79% N2 280 movlw d'79' ; 79% N2
281 movwf wait_temp ; Use as buffer 281 movwf wait_temp ; Use as buffer
282 movff wait_temp,char_I_N2_ratio ; No He at the Surface 282 movff wait_temp,char_I_N2_ratio ; No He at the Surface
283 283
284 movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine 284 SAFE_2BYTE_COPY amb_pressure,int_I_pres_respiration ; copy surface air pressure to deco routine
285 movff amb_pressure+1,int_I_pres_respiration+1
286 GETCUSTOM8 d'11' ; Saturation multiplier % 285 GETCUSTOM8 d'11' ; Saturation multiplier %
287 movff WREG,char_I_saturation_multiplier 286 movff WREG,char_I_saturation_multiplier
288 GETCUSTOM8 d'12' ; Desaturation multiplier % 287 GETCUSTOM8 d'12' ; Desaturation multiplier %
289 movff WREG,char_I_desaturation_multiplier 288 movff WREG,char_I_desaturation_multiplier
290 289