Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BritLion's Putchars
#17
britlion Wrote:You do realise that mine should be able to do anything from 1 character to a whole screen just by changing height and width (and making sure there's enough data at the address given!) ?
No, I was confused because you called it PutChars and not PutBlock. Your routine is working char-wise and has no attribute yet (but that is okay in most games), mine is working progressive. Anyway, yours is faster, so if you will add attribute, I would like to use it. I ask you to swap the place of height and width values:
Code:
SUB putChars(x as uByte,y as uByte,width as uByte,height as uByte,dataAddress as uInteger)

britlion Wrote:I'll see about tweaking it to accept attributes....
Thanks, this would be welcome
britlion Wrote:Do you need FLASH? It might be clever to assume you won't want to set a flashing attribute and have it assume that an attribute >128 (or negative) means that the attributes are in the data...
No, I do not need Flash. But I just noticed that while 8-Byte Char format is very good for compression (only full columns are better), using a 9-byte format is very bad for compression ratio. So what you could do, is to precalculate the adress after bitmap/char data, and use it as source for attribute data. Will this be possible?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)