Login
Back to forumSee the full topicGo to last reply

Posted By

Csabo
on 2005-04-21
16:52:02
 Re: Upcoming Demo

It's pretty simple. Let's say the letter "A" is made up of characters 1,2,3,4. Then letter "B" is made up of 5,2,6,7. (See, they share one character... But O and U for example could share the bottom two etc.) You would simply store this as a "table", just some bytes after another.

table
DB 1,2,3,4
DB 5,2,6,7

When you want to print a 2x2 char on the screen, let's say the character is in "A":
ASL A
ASL A ; multiply by four for the lookup
TAX
LDA table,x
STA (screenpos)
LDA table+1,x
STA (screenpos+1)
LDA table+2,x
STA (screenpos+40)
LDA table+3,x
STA (screenpos+41)

Something along those lines.



Back to top


Copyright © Plus/4 World Team, 2001-2024