Does anyone know where the font tables reside in memory? I am going to write my own text display routine and don't want to use romcalls to get the sprites.
cerzus69 wrote:
Does anyone know where the font tables reside in memory? I am going to write my own text display routine and don't want to use romcalls to get the sprites.
They don't reside in RAM, they reside in ROM, and they change address and page in each TI-OS version. Doors CS contains a several-KB replica of the font table for this reason, for instance.
Several KB? (!) Okay, so I HAVE to use bcall(_Load_SFont) or bcall(_LoadPattern) to get the sprites?
cerzus69 wrote:
Several KB? (!) Okay, so I HAVE to use bcall(_Load_SFont) or bcall(_LoadPattern) to get the sprites?
Yup, unless you want at worst [256*5 + loading routine + exceptions] bytes of table, or at best some optimized version of that.
Yeah, well I don't. I already am struggling with program size if I want to cram all those features in. I'll use a romcall. Thanks for the info!
cerzus69 wrote:
Yeah, well I don't. I already am struggling with program size if I want to cram all those features in. I'll use a romcall. Thanks for the info!
My pleasure. How many characters do you need, though? If you only need letters, numbers, and a few other characters, you could omit all the characters that you don't need.
I only need the characters for the numbers 0 to 9, but I don't think it's worth it to even create my own sprites for those. It would've been handy if I could acces the TI-OS's sprites directly, but I don't mind the romcall overhead I guess.
cerzus69 wrote:
I only need the characters for the numbers 0 to 9, but I don't think it's worth it to even create my own sprites for those. It would've been handy if I could acces the TI-OS's sprites directly, but I don't mind the romcall overhead I guess.
Oh, it's only zero through nine? Then just use sprites! Or make your own cool font! Cf. Invalid Tangram for an example of that principle.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement