diff src/simulator.asm @ 371:fec5eec4c8b7

fix some display issues with display1
author heinrichsweikamp
date Wed, 19 Aug 2015 16:27:00 +0200
parents 2fe34fc0e2ae
children a5fc007634c5
line wrap: on
line diff
--- a/src/simulator.asm	Tue Aug 18 22:02:55 2015 +0200
+++ b/src/simulator.asm	Wed Aug 19 16:27:00 2015 +0200
@@ -481,7 +481,10 @@
 	    movwf   up
 
 	    output_8					    ; Allow up to 240'
-        STRCAT_PRINT "'  "              ; 1 to 3 chars for depth.
+        STRCAT       "'  "              ; 1 to 3 chars for depth.
+        clrf    WREG
+        movff   WREG,buffer+.3          ; limit to 4 chars
+        STRCAT_PRINT 	""
 
 	    movf    lo,W                    ; Swap back up & lo
 	    movff   up,lo
@@ -514,14 +517,11 @@
 ; Inputs: win_top : last used area...
 deco_plan_show_clear_bottom:
         movf    win_top,W               ; Get back from bank0
-        btfsc   divemode                ; In dive mode ?
-        sublw   .168                    ; Yes: bottom row in divemode
-        btfss   divemode                ; In dive mode ?
-        sublw   .240                    ; No: bottom row in planning
+        sublw   .239                    ; No: bottom row in planning
         movwf   win_height
 
         WIN_LEFT .85                    ; Full divemenu width
-        movlw   .160-.85+1
+        movlw   .159-.85+1
         movwf   win_width
 
         clrf    win_color1              ; Fill with black
@@ -530,7 +530,7 @@
         goto	TFT_box
 
 ;-----------------------------------------------------------------------------
-; Display the decoplan (simulator or divemode).
+; Display the decoplan (simulator).
 ; Inputs: char_O_deco_table (array of stop times, in minutes)
 ;         decoplan_page = page number.
 ;