Mercurial > public > hwos_code
diff src/ms5541.asm @ 353:573f2251cf49
NEW: Quit Simulator automatically when starting a real dive
author | heinrichsweikamp |
---|---|
date | Tue, 28 Jul 2015 16:32:55 +0200 |
parents | 653a3ab08062 |
children | 57e349960ef4 |
line wrap: on
line diff
--- a/src/ms5541.asm Tue Jul 28 13:23:09 2015 +0200 +++ b/src/ms5541.asm Tue Jul 28 16:32:55 2015 +0200 @@ -173,6 +173,17 @@ btfss simulatormode_active ; are we in simulator mode? bra calc_compensation_2 ; no + banksel isr_xC+2 + movlw .5 + cpfsgt isr_xC+2 ; >1280mbar ? + bra pressure_extra_common2 ; No + ; Yes, reset sim_pressure:2 to 1000mbar (End of sim) + movlw LOW .1000 + movwf sim_pressure+0 + movlw HIGH .1000 + movwf sim_pressure+1 + +pressure_extra_common2: movff sim_pressure+0,isr_xC+1 ; override readings with simulator values movff sim_pressure+1,isr_xC+2