No Break please, just a space...

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: No Break please, just a space...

Post by sirmorris »

RAMTOP is set by the initialisation routine which is wired to only check from 32k down to 16k. RAM at 8K is non-standard, and RAM above 32k has ... quirks.

Interestingly the 32k RAM pack made by Pokemon pulls a very neat trick, dynamically altering a byte of the ROM so that the INIT routine starts its check higher in RAM :ugeek:
User avatar
PokeMon
Posts: 2264
Joined: Sat Sep 17, 2011 6:48 pm

Re: No Break please, just a space...

Post by PokeMon »

mrtinb wrote: Well, the program could assume that RAMTOP is set correctly before the program is loaded.
Martin
Yes, indeed. This is the responsibility of the user. There are also situations where RAMTOP is decreased by some programs/drivers after loading them. But Mark and Sir Morris are right, there is not really a memory management existing as this machine was constructed to run a single program only.
Post Reply