comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 453:38b38b105782

compute desat based on 30min old surface pressure
author heinrichsweikamp
date Mon, 22 Aug 2011 17:36:30 +0200
parents 3abf9d7dafae
children f53aa96ff2f4
comparison
equal deleted inserted replaced
452:05ec97e106da 453:38b38b105782
276 calc_deko_surfmode: 276 calc_deko_surfmode:
277 ostc_debug 'I' ; Sends debug-information to screen if debugmode active 277 ostc_debug 'I' ; Sends debug-information to screen if debugmode active
278 278
279 movff last_surfpressure+0,int_I_pres_surface+0 ; copy surface air pressure to deco routine 279 movff last_surfpressure+0,int_I_pres_surface+0 ; copy surface air pressure to deco routine
280 movff last_surfpressure+1,int_I_pres_surface+1 280 movff last_surfpressure+1,int_I_pres_surface+1
281 calc_deko_surfmode2:
281 clrf WREG ; Use as buffer 282 clrf WREG ; Use as buffer
282 movff WREG,char_I_He_ratio ; No He at the Surface 283 movff WREG,char_I_He_ratio ; No He at the Surface
283 movlw d'79' ; 79% N2 284 movlw d'79' ; 79% N2
284 movff WREG,char_I_N2_ratio ; Air at the Surface 285 movff WREG,char_I_N2_ratio ; Air at the Surface
285 286