Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
128k memory: saving and restoring data
#2
ZX Basic is not currently prepared for bank switching. Despite that, some people have workarounded it. Basically, the switching code must be below that address you mention. The SAVE! and related instructions are not implemented. But you could read and transfer bytes from there using memcopy or memmove() functions, available in #include <memcopy.bas>

Code:
#include <memcopy.bas>

DIM myArray(255) as Ubyte
Const mygraphicsTable = 51000

MemCopy(mygraphicsTable, @myArray(0), 256) : REM Copies 256 bytes from myGraphicsTable Address into myArray
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)