LOAD
SAVE, LOAD and VERIFY
Syntax
LOAD/VERIFY with this.
With no varname saves ALL the entire user variable area plus the HEAP memory zone.
That is, it saves the entire program state. You can also use LOAD/VERIFY with this.
Remarks
- The save command should save bytes in a format that is 100% Sinclair BASIC Compatible
- For
LOADandVERIFY, when a R-Tape Loading error occurs, the program will not stop. You have to check PEEK 23610 (ERR_NR) for value 26. If that value exists, then theLOAD/VERIFYoperation failed. LOAD/SAVE/VERIFYcan be interrupted by the user by pressing BREAK/Space, which cancels the operation (signaling the break inERR_NRand returning). If you wantLOAD/SAVE/VERIFYto be interrupted and exit also your program (returning to the ROM Basic), compile with--enable-breakflag.- When using
LOAD "xxx" DATA...you won't see the message "Number array:" or "Char array:", but "Bytes:" instead. This is because ZX BASIC always uses bytes (LOAD/SAVE ... CODE) for storing user variables (ZX BASIC is machine code, so the idea of BASIC variables doesn't apply).