Forum
Change RAMs on ZX Spectrum 128k - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16)
+---- Thread: Change RAMs on ZX Spectrum 128k (/showthread.php?tid=2341)



Change RAMs on ZX Spectrum 128k - Week of the agents - 03-15-2023

Hi, Boriel

I'm taking part in the BASIC 2023 jam and plan to swap 128k RAM banks with graph data and use the shadow screen

Is there a way I can do it? ZX Basic use RAM0 for a stack and a data heap, can I somehow move them to a lower address WITH BASIC OPERATORS ONLY?


RE: Change RAMs on ZX Spectrum 128k - Ljg701 - 03-15-2023

It looks like you can do it by updating the bank pointed at $c000. The port is described here, and can be set by the out command.

Https://worldofspectrum.org/faq/reference/128kreference.htm


RE: Change RAMs on ZX Spectrum 128k - Week of the agents - 03-16-2023

(03-15-2023, 10:03 PM)Ljg701 Wrote: It looks like you can do it by updating the bank pointed at $c000. The port is described here, and can be set by the out command.

Https://worldofspectrum.org/faq/reference/128kreference.htm

Yes, I can. But after that I got a program crash.