comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 344:797e2ac42d24 ScreenDump

MERGE with 1.91 main trunk.
author JeanDo
date Sat, 21 May 2011 14:48:07 +0200
parents 6bdf80d7276c 2144f19fa1eb
children 544a96faa9f3 93c0cb14b0d2
comparison
equal deleted inserted replaced
337:6bdf80d7276c 344:797e2ac42d24
130 movlw HIGH d'1000' 130 movlw HIGH d'1000'
131 addwfc xC+1,F ; add 1000mBar 131 addwfc xC+1,F ; add 1000mBar
132 132
133 movff xC+0,sim_pressure+0 133 movff xC+0,sim_pressure+0
134 movff xC+1,sim_pressure+1 134 movff xC+1,sim_pressure+1
135 135
136 movff sim_pressure+0,amb_pressure+0 ; override readings with simulator values 136 ; This override is done in ISR too, but do it right now also:
137 movff sim_pressure+0,amb_pressure+0
137 movff sim_pressure+1,amb_pressure+1 138 movff sim_pressure+1,amb_pressure+1
138 139
139 bcf menubit2 140 bcf menubit2
140 bcf menubit3 141 bcf menubit3
141 bcf menubit 142 bcf menubit
346 call PLED_topline_box 347 call PLED_topline_box
347 WIN_INVERT .1 348 WIN_INVERT .1
348 DISPLAYTEXT .12 ; "Wait..." 349 DISPLAYTEXT .12 ; "Wait..."
349 WIN_INVERT .0 350 WIN_INVERT .0
350 351
351 movff sim_pressure+0,amb_pressure+0 ; override readings with simulator values 352 ; This override is done in ISR too, but do it right now also:
353 movff sim_pressure+0,amb_pressure+0
352 movff sim_pressure+1,amb_pressure+1 354 movff sim_pressure+1,amb_pressure+1
353 355
354 call divemode_check_decogases ; Checks for decogases and sets the gases 356 call divemode_check_decogases ; Checks for decogases and sets the gases
355 call divemode_prepare_flags_for_deco 357 call divemode_prepare_flags_for_deco
356 call set_first_gas ; Set current N2/He/O2 ratios. 358 call set_first_gas ; Set current N2/He/O2 ratios.