Maybe I'm thinking of another of my old rigs and/or SD interfaces, but I could have sworn there was a way on a ZX81, either from standard BASIC or with ZXpander, to SAVE/LOAD a variable to/from a file.
It might be the method of getting the variables address and using the ZXpand's address range SAVE/Load I'm thinking of, or using a block of RAM... But I could of sworn there was a direct way of doing that... Old fuzzy memory and too much snow...
-John-
Save & Load Data
Re: Save & Load Data
The book "Advanced programming for the 16k ZX81" by Mike Costello, Pages 120/121 describe such a method using a Basic + M/C combination, don't have a working scanner at the moment unfortunately .
Re: Save & Load Data
There's nothing in the ZXpand firmware, but you're right to think that you can calculate the address of the variable then use the address range save. I've never done it myself though.
Re: Save & Load Data
Wilf Rigter has implemented SAVE and LOAD of variables (all variables at once, not only a part of them) in his RAMDOS:
http://www.user.dccnet.com/wrigter/inde ... RAMDOS.htm
And I adapted his code to be used in MEFISDOS
Siggi
http://www.user.dccnet.com/wrigter/inde ... RAMDOS.htm
And I adapted his code to be used in MEFISDOS
Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
http://zx81.ddns.net/ZxTeaM
Re: Save & Load Data
Does anyone know if RAMDOS works with other RAM-PACKs other whan Wilf Rigter's own 32K expansion? E.g. the documentations has reference to write protect switch.
- 1024MAK
- Posts: 5165
- Joined: Mon Sep 26, 2011 10:56 am
- Location: Looking forward to summer in Somerset, UK...
Re: Save & Load Data
Err, don't get confused between a normal RAM expansion and other memory:- "RAMDOS is normally used with a large Non-Volatile Memory pack or the ZX97."
See here for more about a ZX81 expansion that includes more information.
Mark
See here for more about a ZX81 expansion that includes more information.
Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Amp
Standby alert
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer being good this year.
ZX81 Chip Pin-outs
ZX81 Video Transistor Amp
Standby alert
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer being good this year.