Save & Load Data

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
User avatar
Posts: 57
Joined: Sun Jun 17, 2012 9:40 pm

Save & Load Data

Post by questarian »

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... :lol:


Posts: 2032
Joined: Wed Jun 18, 2008 2:00 pm

Re: Save & Load Data

Post by Moggy »

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 .

Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: Save & Load Data

Post by sirmorris »

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.

User avatar
Posts: 913
Joined: Thu May 08, 2008 9:30 am
Location: Dauernheim, Germany

Re: Save & Load Data

Post by siggi »

Wilf Rigter has implemented SAVE and LOAD of variables (all variables at once, not only a part of them) in his RAMDOS: ... RAMDOS.htm

And I adapted his code to be used in MEFISDOS :mrgreen:

My ZX81 web-server: online since 2007

User avatar
Posts: 1213
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark

Re: Save & Load Data

Post by mrtinb »

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.
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

User avatar
Posts: 2997
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Save & Load Data

Post by 1024MAK »

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.


Post Reply