diff code_part1/OSTC_code_asm_part1/simulator.asm @ 168:494587193f5d

Use 16bits for TTS sum. + Display in divemode as 16bits. + Display in decoplanning as 16bits.
author JeanDo
date Tue, 25 Jan 2011 01:02:35 +0100
parents aaa6e8720a7d
children e26f49674956
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/simulator.asm	Mon Jan 24 23:31:57 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/simulator.asm	Tue Jan 25 01:02:35 2011 +0100
@@ -159,8 +159,10 @@
         call	divemenu_see_decoplan
         
         ; Display TTS, if any...
-        movff   char_O_ascenttime,WREG
-        iorwf   WREG
+        movff   int_O_ascenttime+0,lo
+        movff   int_O_ascenttime+1,hi
+        movf    lo,W
+        iorwf   hi,W
         bz      simulator_decoplan_notts
 
         WIN_LEFT .0
@@ -168,9 +170,8 @@
         call    PLED_standard_color
         
         STRCPY  "TTS: "
-        movff   char_O_ascenttime,lo
         bcf		leftbind
-        output_8
+        output_16
         STRCAT_PRINT    "'"		
 simulator_decoplan_notts: