diff code_part1/OSTC_code_asm_part1/outputs.asm @ 823:1a64088b49d3

Fix minor layout bugs in surface mode (CNS and GF display)
author heinrichsweikamp
date Mon, 22 Jun 2015 09:58:33 +0200
parents e49a35ab7394
children 2151c4135fad
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/outputs.asm	Thu Jun 18 18:06:41 2015 +0200
+++ b/code_part1/OSTC_code_asm_part1/outputs.asm	Mon Jun 22 09:58:33 2015 +0200
@@ -4221,7 +4221,10 @@
 	bsf		leftbind
 	output_8
 	bcf		leftbind
-	STRCAT_PRINT "% "
+	STRCAT  "% "
+    movlw   .0
+    movff   WREG,letter+.8          ; Limit to 8 chars
+    STRCAT_PRINT  ""
 	return
 
 ;-----------------------------------------------------------------------------
@@ -4243,7 +4246,10 @@
         STRCPY  TXT_GF3
         movff   char_O_gradient_factor,lo		; gradient factor
         output_8
-        STRCAT_PRINT  "%  "
+        STRCAT  "%  "
+        movlw   .0
+        movff   WREG,letter+.8          ; Limit to 8 chars
+        STRCAT_PRINT  ""
         goto    DISP_standard_color
 
 ;-----------------------------------------------------------------------------