diff src/tft.asm @ 431:9500b2d3e32b

hunting a bug in the logbook...
author heinrichsweikamp
date Tue, 21 Jun 2016 17:20:44 +0200
parents fec5eec4c8b7
children 929feb0da4f5
line wrap: on
line diff
--- a/src/tft.asm	Tue Jun 21 12:44:19 2016 +0200
+++ b/src/tft.asm	Tue Jun 21 17:20:44 2016 +0200
@@ -757,8 +757,8 @@
 
 		Index_out 0x20				; Frame Memory Horizontal Address
 		movf	PRODH,W
-		rcall	TFT_DataWrite		; Lower (and tick)
-		return
+		bra	TFT_DataWrite		; Lower (and tick) and return
+;		return
 
 
 TFT_box_noflip_V:
@@ -783,8 +783,8 @@
 
 		Index_out 0x20				; Frame Memory Horizontal Address
 		movf	PRODL,W
-		rcall	TFT_DataWrite		; Lower (and tick)
-		return
+		bra	TFT_DataWrite		; Lower (and tick)  and return
+		;return
 
 
 ;=============================================================================
@@ -841,10 +841,12 @@
 
 TFT_box:
     ;---- Define Window ------------------------------------------------------
-	movf	win_width,W
+;	movf	win_width+0,W
+;	bcf     STATUS,C
+;	rlcf    WREG
+;	movwf   win_width+0
 	bcf     STATUS,C
-	rlcf    WREG
-	movwf   win_width+0
+	rlcf    win_width+0,F
 	movlw   0
 	rlcf    WREG
 	movwf   win_width+1
@@ -852,9 +854,10 @@
 
     global  TFT_box_16bit_win_left
 TFT_box_16bit_win_left:
-    rrcf    win_width+1,W               ; width /= 2
-    rrcf    win_width+0,W
-    movwf   win_width
+    bcf     STATUS,C
+    rrcf    win_width+1,F               ; width /= 2
+    rrcf    win_width+0,F
+;    movwf   win_width
 
     ;---- Fill Window --------------------------------------------------------
 	Index_out 0x22						; Frame Memory Data Write start