More than 16k RAM in BASIC?
Posted: Sun Aug 26, 2012 3:17 pm
Hi, this is my first post, (skip to questions below if you're timestrapped),
Tried a quick search for the answers which I'm sure have been covered a million times, but no luck, so...
I'm writing a program in BASIC for the ZX81 on the EightyOne emulator.
The problem, as you've probably guessed, is I've hit a block by being out of memory.
The options in emulator take the ZX81 up to 16k, 32k and 48k RAM.
I've found that peeking at RAMTOP from 16k and above, doesn't change RAMTOP. It stays at 32k.
There's also an option to not shadow the ROM in the 8k-16k range, releasing it for use I'm guessing.
Tried the emulators homepage but it no longer exists. There's a independant, volunteered mirror but not really open to questions.
So, I can set the memory to 48k but can currently only access it as if I have 16k in BASIC.
My questions are:
1) Can the extra 32k RAM be accessed from BASIC for the purposes of BASIC (data only is fine)?
2) Ditto for the 8-16k RAM range? What problems can this cause, if any?
3) If only data can be stored in these memory spaces, can someone provide an example in BASIC?
I'm happy to do a little reading, just lack knowledge on how to properly access >32k memory in
BASIC using peeks and pokes.
http://nocash.emubase.de/zxdocs.txt seems to have some useful info, but I'm still not sure.
I'm not an assembly programmer so just need the code to access the other memory areas so that I can finish my program.
Then maybe I'll consider going medieval on the ZX81
Thanks for any help,
Aaron
PS I've got and fully read the BASIC manual.
Tried a quick search for the answers which I'm sure have been covered a million times, but no luck, so...
I'm writing a program in BASIC for the ZX81 on the EightyOne emulator.
The problem, as you've probably guessed, is I've hit a block by being out of memory.
The options in emulator take the ZX81 up to 16k, 32k and 48k RAM.
I've found that peeking at RAMTOP from 16k and above, doesn't change RAMTOP. It stays at 32k.
There's also an option to not shadow the ROM in the 8k-16k range, releasing it for use I'm guessing.
Tried the emulators homepage but it no longer exists. There's a independant, volunteered mirror but not really open to questions.
So, I can set the memory to 48k but can currently only access it as if I have 16k in BASIC.
My questions are:
1) Can the extra 32k RAM be accessed from BASIC for the purposes of BASIC (data only is fine)?
2) Ditto for the 8-16k RAM range? What problems can this cause, if any?
3) If only data can be stored in these memory spaces, can someone provide an example in BASIC?
I'm happy to do a little reading, just lack knowledge on how to properly access >32k memory in
BASIC using peeks and pokes.
http://nocash.emubase.de/zxdocs.txt seems to have some useful info, but I'm still not sure.
I'm not an assembly programmer so just need the code to access the other memory areas so that I can finish my program.
Then maybe I'll consider going medieval on the ZX81
Thanks for any help,
Aaron
PS I've got and fully read the BASIC manual.