diff src/tft.asm @ 83:eb72c8865f47

Test with graphic compass
author heinrichsweikamp
date Mon, 17 Mar 2014 23:48:30 +0100
parents 11d4fc797f74
children 53409476a05f
line wrap: on
line diff
--- a/src/tft.asm	Mon Mar 10 11:39:31 2014 +0100
+++ b/src/tft.asm	Mon Mar 17 23:48:30 2014 +0100
@@ -626,6 +626,8 @@
 		movff	win_leftx2,WREG         ; Compute left = 2*leftx2 --> PROD
 		mullw	2
 
+        global  TFT_box_write_16bit_win_left
+TFT_box_write_16bit_win_left:           ; With column in PRODL:PRODH
         ;---- Normal horizontal window ---------------------------------------
         ; Output 0x35 left,
         ;        0x36 right ==  left + width - 1.
@@ -738,8 +740,10 @@
 	movlw   0
 	rlcf    WREG
 	movwf   win_width+1
-	rcall   TFT_box_write
+	rcall   TFT_box_write               ; Setup box
 
+    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