comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 593:46e9ccd0eca7

pSCR CNS in simulator
author heinrichsweikamp
date Mon, 28 May 2012 18:02:07 +0200
parents cda5b45b953f
children 16f4eafc197e
comparison
equal deleted inserted replaced
592:cda5b45b953f 593:46e9ccd0eca7
283 movlw .6 283 movlw .6
284 cpfseq EEDATA 284 cpfseq EEDATA
285 bra calc_deko_divemode1a 285 bra calc_deko_divemode1a
286 ; in PSCR mode 286 ; in PSCR mode
287 call compute_pscr_ppo2 ; pSCR ppO2 into sub_c:2 287 call compute_pscr_ppo2 ; pSCR ppO2 into sub_c:2
288 ; tstfsz sub_c+1 ; Is ppO2 > 2.55bar ? 288 ; tstfsz sub_c+1 ; Is ppO2 > 2.55bar ? mH
289 ; setf sub_c+0 ; yes: bound to 2.55... better than wrap around. 289 ; setf sub_c+0 ; yes: bound to 2.55... better than wrap around.
290 movff sub_c+0,char_I_actual_ppO2 ; copy last ppO2 to buffer register 290 movff sub_c+0,char_I_actual_ppO2 ; copy last ppO2 to buffer register
291 291
292 calc_deko_divemode1a: 292 calc_deko_divemode1a:
293 call deco_calc_CNS_fraction ; calculate CNS 293 call deco_calc_CNS_fraction ; calculate CNS