comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 56:0338aac9a267

surfacemode
author heinrichsweikamp
date Wed, 04 Aug 2010 18:23:50 +0200
parents a63d63a8612e
children 2ff1b30b1bdf
comparison
equal deleted inserted replaced
55:a63d63a8612e 56:0338aac9a267
204 movlw d'100' 204 movlw d'100'
205 movwf xB+0 205 movwf xB+0
206 clrf xB+1 206 clrf xB+1
207 call mult16x16 ;xA*xB=xC ; Depth in m*100 207 call mult16x16 ;xA*xB=xC ; Depth in m*100
208 208
209 movlw LOW d'1000' 209 movf amb_pressure+0,W
210 addwf xC+0,F 210 addwf xC+0,F
211 movlw HIGH d'1000' 211 movf amb_pressure+1,W
212 addwfc xC+1,F ; Add 1000mBar 212 addwfc xC+1,F ; Add ambient pressure
213 213
214 movff xC+0,sim_pressure+0 214 movff xC+0,sim_pressure+0
215 movff xC+1,sim_pressure+1 215 movff xC+1,sim_pressure+1
216 216
217 movff sim_pressure+0,amb_pressure+0 ; override readings with simulator values 217 movff sim_pressure+0,amb_pressure+0 ; override readings with simulator values