After loading a program, we that still labor with ZX-81 machines and not so reliable tapes always wonder if it loaded OK. You and I know that a program may still run and not have loaded perfectly. Well, my solution is in fact very simple. Just replace the save lines with the following:
xxx0 CLS
xxx1 LET Z=PEEK 16425 + 256
* PEEK 16426 + 5
xxx2 REM 12345678901234567
xxx3 FOR I=1 TO 17
xxx4 INPUT N
xxx5 PRINT N ;" ";
xxx6 POKE Z,N
xxx7 LET Z=Z+1
xxx8 NEXT I
xxx9 STOP
Run this program and enter the following data, one by one:
42 20 64 17 125 64 175 71 43 174
79 237 82 208 25 24 247
Now replace lines xxx3 to xxx9:
xxx3 POKE 16417, USR Z
xxx4 SAVE "program name"
xxx5 IF USR Z=PEEK 16417 THEN
GOTO 1
xxx6 PRINT "SORRY, BAD LOAD....
MARCIO SAYS SO !"
xxx9 STOP
Now save the program. Do not modify lines xxx0 to xxx3. Line xxx4 may be changed to agree with your fast loading program. (XXX4 RAND USR *****). Line xxx5 may be changed to read xxx5 IF USR Z=PEEK 16417 THEN RUN, (or GOTO ***** ). Line xxx6, MUST NOT, I do repeat, MUST NOT be changed or the worst things will happen to your beloved machine, the least being that your ULA will start smoking and be useless forever… and you cannot get those anymore… WHY ?
Marcio Vieira says so
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.