Boriel Basic Forum
Change RAMs on ZX Spectrum 128k - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://forum.boriel.com/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 - 2023-03-15

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 - 2023-03-15

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 - 2023-03-16

(2023-03-15, 11: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.