diff code_part1/OSTC_code_asm_part1/simulator.asm @ 62:2972a06b0785

1.71 beta in work
author heinrichsweikamp
date Mon, 20 Sep 2010 21:51:18 +0200
parents 2ff1b30b1bdf
children fee7c62b4de1
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/simulator.asm	Thu Aug 05 09:50:24 2010 +0200
+++ b/code_part1/OSTC_code_asm_part1/simulator.asm	Mon Sep 20 21:51:18 2010 +0200
@@ -125,11 +125,16 @@
 	clrf	xB+1
 	call	mult16x16	;xA*xB=xC			; Depth in m*100
 
-	movf	amb_pressure+0,W
+	movlw	LOW		d'1000'
 	addwf	xC+0,F
-	movf	amb_pressure+1,W
-	addwfc	xC+1,F							; Add ambient pressure
-	
+	movlw	HIGH	d'1000'
+	addwfc	xC+1,F							; add 1000mBar
+
+;	movf	amb_pressure+0,W
+;	addwf	xC+0,F
+;	movf	amb_pressure+1,W
+;	addwfc	xC+1,F							; Add ambient pressure
+;	
 	movff	xC+0,sim_pressure+0
 	movff	xC+1,sim_pressure+1
 	
@@ -206,11 +211,16 @@
 	clrf	xB+1
 	call	mult16x16	;xA*xB=xC			; Depth in m*100
 
-	movf	amb_pressure+0,W
+	movlw	LOW		d'1000'
 	addwf	xC+0,F
-	movf	amb_pressure+1,W
-	addwfc	xC+1,F							; Add ambient pressure
-	
+	movlw	HIGH	d'1000'
+	addwfc	xC+1,F							; add 1000mBar
+
+;	movf	amb_pressure+0,W
+;	addwf	xC+0,F
+;	movf	amb_pressure+1,W
+;	addwfc	xC+1,F							; Add ambient pressure
+;	
 	movff	xC+0,sim_pressure+0
 	movff	xC+1,sim_pressure+1