The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




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)