Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to put zxbasic code in memory banks
#11
boriel Wrote:How did Z88dk manages this?

It doesn't. You have to do it by hand. Move the stack to a safe place, switch to RAM n, copy/unpack what you need to low ram, switch back RAM 0. That's how it's done, and z88dk has no means to do it. You have to do your own paging and copying/unpacking routines.

In our games we unpack directly to the memory addresses used in the games. We don't have scratchpad buffers. When we need a new map, we unpack from RAM n to the actual array where the map is stored in low RAM. Same for graphics.


Some time ago we made this same approach work in ZX Basic. Check here. <!-- m --><a class="postlink" href="http://foro.speccy.org/viewtopic.php?p=33120#p33120">http://foro.speccy.org/viewtopic.php?p=33120#p33120</a><!-- m --> there's much babble and gibberish, and it's in Spanish, but finally the work gets done.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)