[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applesoft Basic size limitations?



On Sat, 26 May 2012, Brian wrote:

So I thought I'd write a simple game for the Retrospectiva
competition.  I've made a few lores games in the past, but wanted to
write this one in hires.  Only problem is every time my file gets to
around the 14000 bytes mark, it starts to trip out (I get annoying
horizontal lines through several rows).  Reducing gosubs doesn't fix
it, the only thing that seems to work is reducing the size of the file
by tightening up my code and reducing unnecessary characters and long
remarks I made.  What's the byte limitation?  Or is there a limit to
the number of lines?  My lores games were around 18000 bytes and 800
lines or so.  I apologize for my ignorance :)

To use hi-res, if your program is loaded at the default address (2K), if it crosses the 8K (HGR) or 16K (HGR2) address, it will cause issues.

You can force the program to load at 16K, which will give you about 21K of space for code and data even under standard 48K DOS 3.3.

-uso.