- Posts: 2888
- Joined: Mon Sep 26, 2011 10:56 am
- Location: Looking forward to summer in Somerset, UK...
When you save a BASIC program, variables including arrays are saved. When loading, do not use RUN, instead use GOTO 1. Then the array and the data in it is not lost. The screen data can then be copied (POKEd) back to the 'display file'.
To reduce the amount of memory needed, use a string array and convert the numbers returned by PEEK to characters.
This is only practical if your system has at least 16K RAM.
For more on this, read through chapter 22 and chapters 27 and 28 in the Sinclair ZX81 BASIC Programming manual.
Indeed there is a possibility: ZeddyNet and TNFSzxooner wrote: ↑Wed Sep 05, 2018 12:41 pmIs there any way that the data could be sent to the pc instead of a printer (thaf the 81 thinks is a printer) so the picture can be saved on the pc that way? I've pre-ordered the ZXpand+ and I was wondering if the possibility existed alongside a serial link.
My Zeddy has a patched rom, which does not have any printer routines inside. Instead it has an interface to external printer drivers in ram.
So I can load a printer driver into ram above 32K, which forwards printed data to
- a normal Sinclair printer
- a Centronics-Printer (via interface cards having e. g. a Z80 PIO)
- a network printer (a PC acting as TNFS server) somewhere in the internet
Usually I use the network printer to "print" into a file on my PC. All usual LPRINT, LLIST, COPY commands then write into a file (via ZeddyNet) on my PC.
@mrtinb, apologies for hijacking your thread!