diff code_part1/OSTC_code_asm_part1/displaytext.asm @ 83:3e351e25f5d1

adding anti-aliased fonts frame and merging some patches from Jeando
author heinrichsweikamp
date Tue, 07 Dec 2010 22:36:19 +0100
parents ceeeb5e49348
children e56f80318b58
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/displaytext.asm	Tue Dec 07 13:22:17 2010 +0100
+++ b/code_part1/OSTC_code_asm_part1/displaytext.asm	Tue Dec 07 22:36:19 2010 +0100
@@ -67,9 +67,9 @@
 	movwf	EECON1
 
 	clrf	TBLPTRU
-	movlw	textpos_pointer_high
+	movlw	HIGH (textpos_pointer-4)
 	movwf	TBLPTRH
-	movlw	textpos_pointer_low			; base address -4 for position table
+	movlw	LOW (textpos_pointer-4)	; base address -4 for position table
 	movwf	TBLPTRL
 
 	movff	textnumber,xA+0
@@ -107,7 +107,7 @@
 	clrf	textaddress+1
 	clrf	TBLPTRH					; Set Pointer for textlength table
 	clrf	TBLPTRU
-	movlw	textlength_pointer_low
+	movlw	LOW textlength_pointer
 	movwf	TBLPTRL
 	bra		displaytext1b
 
@@ -128,10 +128,10 @@
 
 displaytext2:						; copies text to wordprocessor
 	clrf	TBLPTRU
-	movlw	text_pointer_low
+	movlw	LOW text_pointer
 	addwf	textaddress+0,W
 	movwf	TBLPTRL
-	movlw	text_pointer_high		; Base address Texts
+	movlw	HIGH text_pointer		; Base address Texts
 	addwfc	textaddress+1,W
 	movwf	TBLPTRH