diff code_part1/OSTC_code_asm_part1/simulator.asm @ 184:016c45a0caaf

Enable to compile p2_deco.c on other platforms.
author JeanDo
date Sun, 06 Feb 2011 19:32:11 +0100
parents e26f49674956
children f15e804ff67f
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/simulator.asm	Sun Feb 06 19:29:43 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/simulator.asm	Sun Feb 06 19:32:11 2011 +0100
@@ -158,23 +158,34 @@
         call	PLED_simdata_screen
         call	divemenu_see_decoplan
         
+        WIN_LEFT .0
+        call    PLED_standard_color
+
         ; Display TTS, if any...
         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
+        
         WIN_TOP .160
-        call    PLED_standard_color
-        
-        STRCPY  "TTS: "
+        lfsr    FSR2, letter
+        OUTPUTTEXT .85                  ; TTS (for translation).
+        STRCAT  ": "
+        bsf		leftbind
+        output_16
+        STRCAT_PRINT    "'"		
+
+simulator_decoplan_notts:
+        movff   int_I_pres_surface+0,lo
+        movff   int_I_pres_surface+1,hi
+
+        WIN_TOP .190                    ; Print Pamb used for compute
+        lfsr    FSR2, letter
         bsf		leftbind
         output_16
         bcf		leftbind
-        STRCAT_PRINT    "'"		
-simulator_decoplan_notts:
+        STRCAT_PRINT    " mbar"
 
         WIN_INVERT	.1	                ; Init new Wordprocessor	
         DISPLAYTEXT	.188		        ; Sim. Results: