comparison 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
comparison
equal deleted inserted replaced
82:bc3092c41335 83:3e351e25f5d1
65 movwf textnumber 65 movwf textnumber
66 movlw b'10000000' 66 movlw b'10000000'
67 movwf EECON1 67 movwf EECON1
68 68
69 clrf TBLPTRU 69 clrf TBLPTRU
70 movlw textpos_pointer_high 70 movlw HIGH (textpos_pointer-4)
71 movwf TBLPTRH 71 movwf TBLPTRH
72 movlw textpos_pointer_low ; base address -4 for position table 72 movlw LOW (textpos_pointer-4) ; base address -4 for position table
73 movwf TBLPTRL 73 movwf TBLPTRL
74 74
75 movff textnumber,xA+0 75 movff textnumber,xA+0
76 movlw d'0' 76 movlw d'0'
77 btfsc displaytext_high ; Highbit set? 77 btfsc displaytext_high ; Highbit set?
105 105
106 clrf textaddress+0 106 clrf textaddress+0
107 clrf textaddress+1 107 clrf textaddress+1
108 clrf TBLPTRH ; Set Pointer for textlength table 108 clrf TBLPTRH ; Set Pointer for textlength table
109 clrf TBLPTRU 109 clrf TBLPTRU
110 movlw textlength_pointer_low 110 movlw LOW textlength_pointer
111 movwf TBLPTRL 111 movwf TBLPTRL
112 bra displaytext1b 112 bra displaytext1b
113 113
114 displaytext1a: 114 displaytext1a:
115 bcf displaytext_high ; Clear flag 115 bcf displaytext_high ; Clear flag
126 btfsc displaytext_high ; Highbit set? 126 btfsc displaytext_high ; Highbit set?
127 bra displaytext1a ; Yes, add 256 loops 127 bra displaytext1a ; Yes, add 256 loops
128 128
129 displaytext2: ; copies text to wordprocessor 129 displaytext2: ; copies text to wordprocessor
130 clrf TBLPTRU 130 clrf TBLPTRU
131 movlw text_pointer_low 131 movlw LOW text_pointer
132 addwf textaddress+0,W 132 addwf textaddress+0,W
133 movwf TBLPTRL 133 movwf TBLPTRL
134 movlw text_pointer_high ; Base address Texts 134 movlw HIGH text_pointer ; Base address Texts
135 addwfc textaddress+1,W 135 addwfc textaddress+1,W
136 movwf TBLPTRH 136 movwf TBLPTRH
137 137
138 btfss output_to_postinc_only ; output to postinc2 only? 138 btfss output_to_postinc_only ; output to postinc2 only?
139 lfsr FSR2,letter ; no! 139 lfsr FSR2,letter ; no!