diff code_part1/OSTC_code_asm_part1/simulator.asm @ 385:af703be9ead2 64kByte Logbook

Fix simulator start
author heinrichsweikamp
date Sat, 18 Jun 2011 17:52:52 +0200
parents 61742b3ef842
children a59532d2daf8
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/simulator.asm	Sat Jun 18 11:26:22 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/simulator.asm	Sat Jun 18 17:52:52 2011 +0200
@@ -153,6 +153,7 @@
     ; This override is done in ISR too, but do it right now also:	
 	movff	sim_pressure+0,amb_pressure+0
 	movff	sim_pressure+1,amb_pressure+1
+	call	comp_air_pressure0				; Make sure to have depth in rel_pressure:2
 
 	bcf		menubit2
 	bcf		menubit3