diff src/simulator.asm @ 178:39f6c07ce2f6

BUGFIX: Average depth computation
author heinrichsweikamp
date Tue, 07 Oct 2014 13:45:21 +0200
parents 932e91074bdb
children e79bc535ef9e
line wrap: on
line diff
--- a/src/simulator.asm	Tue Oct 07 08:42:38 2014 +0200
+++ b/src/simulator.asm	Tue Oct 07 13:45:21 2014 +0200
@@ -147,6 +147,9 @@
         btfsc   is_bailout              ; =1: Bailout
         rcall   deco_setup_oc_gases     ; Setup OC/Bailout Gases
 
+    	movff   divemins+0,int_I_divemins+0         ; Current dive time.
+    	movff   divemins+1,int_I_divemins+1
+
         movlw   deco_distance
         movff   WREG,char_I_deco_distance
         movff   opt_last_stop,char_I_depth_last_deco