diff code_part1/OSTC_code_asm_part1/simulator.asm @ 57:152fbe7f121d

small update simulator
author heinrichsweikamp
date Tue, 03 Aug 2010 21:42:43 +0200
parents a63d63a8612e
children
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/simulator.asm	Tue Aug 03 14:46:52 2010 +0200
+++ b/code_part1/OSTC_code_asm_part1/simulator.asm	Tue Aug 03 21:42:43 2010 +0200
@@ -198,7 +198,6 @@
 	bsf		simulatormode_active			; normal simulator mode
 	bsf		standalone_simulator			; Standalone Simulator active
 
-
 	movff	logbook_temp2,xA+0
 	clrf	xA+1
 	movlw	d'100'
@@ -206,10 +205,12 @@
 	clrf	xB+1
 	call	mult16x16	;xA*xB=xC			; Depth in m*100
 
-	movlw	LOW		d'1000'
+;	movlw	LOW		d'1000'
+	movf	amb_pressure+0,W
 	addwf	xC+0,F
-	movlw	HIGH	d'1000'
-	addwfc	xC+1,F							; Add 1000mBar
+	movf	amb_pressure+1,W
+;	movlw	HIGH	d'1000'
+	addwfc	xC+1,F							; Add ambient pressure
 	
 	movff	xC+0,sim_pressure+0
 	movff	xC+1,sim_pressure+1