Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
352:5c6da9fa5cb0 | 353:573f2251cf49 |
---|---|
171 pressure_extra_common: | 171 pressure_extra_common: |
172 banksel common ; flag2 is in bank 1 | 172 banksel common ; flag2 is in bank 1 |
173 btfss simulatormode_active ; are we in simulator mode? | 173 btfss simulatormode_active ; are we in simulator mode? |
174 bra calc_compensation_2 ; no | 174 bra calc_compensation_2 ; no |
175 | 175 |
176 banksel isr_xC+2 | |
177 movlw .5 | |
178 cpfsgt isr_xC+2 ; >1280mbar ? | |
179 bra pressure_extra_common2 ; No | |
180 ; Yes, reset sim_pressure:2 to 1000mbar (End of sim) | |
181 movlw LOW .1000 | |
182 movwf sim_pressure+0 | |
183 movlw HIGH .1000 | |
184 movwf sim_pressure+1 | |
185 | |
186 pressure_extra_common2: | |
176 movff sim_pressure+0,isr_xC+1 ; override readings with simulator values | 187 movff sim_pressure+0,isr_xC+1 ; override readings with simulator values |
177 movff sim_pressure+1,isr_xC+2 | 188 movff sim_pressure+1,isr_xC+2 |
178 | 189 |
179 calc_compensation_2: | 190 calc_compensation_2: |
180 banksel isr_backup | 191 banksel isr_backup |