I think you could pack the word list down from 10k in some way, unless you've already done this. You could pack 63 different characters (plenty because you probably only need 26+space and maybe a few punctuations) in 6 bits, giving you 4 letters per 3 bytes. Or 31 in 5 bits, giving you 8 letters in 5 bytes. 4 letters per 3 bytes = 3k saved (approx). 8 letters per 5 bytes = 3.75k saved (approx.) This is something like the way the Z-machine packs its text. http://www.gnelson.demon.co.uk/zspec/sect03.html I suspect that there are more clever ways to do this. _____ From: owner-cc65@musoftware.de [mailto:owner-cc65@musoftware.de] On Behalf Of Maspethrose7@aol.com Sent: Thursday, November 25, 2010 7:26 PM To: cc65@musoftware.de Subject: Re: [cc65] Optimizations needed! Loading rooms from disk would be infeasible, because, so far, they take only 1 3/8k of code and certain rooms use some code to handle special instances. Verbs could be loaded in from disk as needed, but such would require a lot of conversion work and other considerations and would slow down the system considerably. The words take up about 10k, so this should save 2-3k. Thank you. In a message dated 11/25/2010 9:25:59 P.M. Eastern Standard Time, plbyrd@gmail.com writes: Load as much data as you can dynamically. Numbered text files, or a REL file of the data could be a great help in holding down code bloat. You could also detect the availability of extra RAM and load data into an REU or similar device using the ram expansion driver model for cc65. -- Payton Byrd <http://www.paytonbyrd.com <http://www.paytonbyrd.com/> > <http://it.toolbox.com/blogs/paytonbyrd> ------------------- Joseph Rose, a.k.a. Harry Potter Working magic in the computer community...or at least striving to! :( ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Nov 26 05:58:32 2010
This archive was generated by hypermail 2.1.8 : 2010-11-26 05:58:34 CET