Re: Small memory dump program
Posted: Wed Sep 05, 2018 8:57 pm
If you have enough RAM, you can define an array. Then copy data (PEEK) from the ZX81 'display file' area of memory into the array.
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.
Mark
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.
Mark