Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to put zxbasic code in memory banks
#8
boriel Wrote:Or something like that, but this will require to change big areas of the compiler at the moment, not only syntax, because whenever you access an array, a bank switch must be done automatically for you, etc...
And this would also break the loader of BorIDE, as it generates anything from BIN output by itself. Anyway, it would be still possible to fix this.
I think, my solution which already exist, is a good way to work around the problem, and serve the compressed data which allows even to store much more of it in memory banks. I think, decompression from memory bank to Array should be possible too (if this data exists as binary file), but the Array data would still be in the main memory (I always used DEFB and no arrays).
I was successfull to store pictures worth more than 32Kb in one bank (The pictures for "Star Trek Classic", I displayed on my homepage), so storing 160 Kb using the compressor+compiled code should be possible. Sure, I need a bufer in low memory (in this case 3888 bytes), but such a bufer can be also reused for many other things, also for flickerfree animations or temporary storage of picture.
------------------------------------------------------------
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: 1 Guest(s)