Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/displaytext.asm @ 172:e56f80318b58
some brainstorming about multi-language
author | heinrichsweikamp |
---|---|
date | Tue, 01 Feb 2011 19:08:54 +0100 |
parents | 3e351e25f5d1 |
children | 53b16a746166 |
comparison
equal
deleted
inserted
replaced
171:7f3e1bf588bc | 172:e56f80318b58 |
---|---|
113 | 113 |
114 displaytext1a: | 114 displaytext1a: |
115 bcf displaytext_high ; Clear flag | 115 bcf displaytext_high ; Clear flag |
116 ; Get textadress from textlength table | 116 ; Get textadress from textlength table |
117 displaytext1b: | 117 displaytext1b: |
118 TBLRD*+ | 118 TBLRD*+ ; Read from textlength_pointer |
119 movf TABLAT,W | 119 movf TABLAT,W |
120 addwf textaddress+0,F | 120 addwf textaddress+0,F |
121 movlw d'0' | 121 movlw d'0' |
122 addwfc textaddress+1,F | 122 addwfc textaddress+1,F ; textaddress:2 holds address for first character |
123 decfsz textnumber,F | 123 decfsz textnumber,F |
124 bra displaytext1b | 124 bra displaytext1b |
125 | 125 |
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 |