diff src/simulator.asm @ 432:929feb0da4f5

hunting a bug in the logbook (Day 2)
author heinrichsweikamp
date Wed, 22 Jun 2016 12:36:15 +0200
parents a5fc007634c5
children 1eeafeeb9287
line wrap: on
line diff
--- a/src/simulator.asm	Tue Jun 21 17:20:44 2016 +0200
+++ b/src/simulator.asm	Wed Jun 22 12:36:15 2016 +0200
@@ -498,7 +498,8 @@
         movlw	.118
         movwf	win_leftx2    		    ; column left (0-159)
         movlw	.16
-        movwf	win_width    		    ; column max width.
+        movwf	win_width+0    		    ; column max width.
+	clrf    win_width+1
 
         ; Draw used area (up = minutes):
         movlw	.16                     ; Limit length (16min)
@@ -522,12 +523,13 @@
 
         WIN_LEFT .85                    ; Full divemenu width
         movlw   .159-.85+1
-        movwf   win_width
+        movwf   win_width+0
+	clrf    win_width+1
 
         clrf    win_color1              ; Fill with black
         clrf    win_color2
 
-        goto	TFT_box
+        goto	TFT_box		    ; and return
 
 ;-----------------------------------------------------------------------------
 ; Display the decoplan (simulator).