ZX81 Tape Library

See all articles from Sinc-Link v8 n5
Author(s): George Chambers
Publication: Sinc-Link
Pub Details: Sinc-Link v8 n5 (Volume 8, Issue 5)
Date: September/October 1990
Pages: 7

Our ZX81/TS1000 tape library does not see much activity these days. Parly, I suppose it’s because the more active members have moved onto the TS2068 and the QL. However, it may also be because of an unawareness of the treasures that our tape library holds.

The following two listings are taken from tape #65. They are loading utilities. The first one is for use on a tape program which crashes during loading. It may be from a flaw on the tape, for example. The program will allow you to salvage that part of the program which has loaded prior to the “break” in the tape.

  1 REM E82A0C4037ED522A0C40380AE80100003E76EDB92323C30304
10 REM SAVE PART OF A BAD TAPE
20 FAST
30 LET a=124
40 FOR I=508 TO 929
50 POKE I+A*256,PEEK I
60 NEXT I
70 LET B=A*256+834
80 POKE B,55
90 POKE B+7,A+3
100 POKE B+32,6
110 POKE B+33,A+2
120 POKE B+38,A+3
130 POKE B+60,A+3
140 POKE B+64,A+1
150 FOR J=1 TO 25
160 LET C=16512+J*2
170 POKE J+A*256+517,(PEEK C-28)*16+PEEK (C+1)-28
180 NEXT J
190 RANDOMIZE USR B
200 PRINT "THIS PROGRAM WILL RECOVER A DAMAGED TAPE FROM THE BEGINNING OF A PROGRAM TO THE DAMAGED SPOTOR DROPOUT.",,,,,,
220 PRINT "RUN PROGRAM",,,,"WHEN PATTERN APPEARS,","""LOAD"" THE DAMAGED TAPE AS YOU WOULD A NORMAL TAPE"

The second program is for use in making a copy of a tape which starts running automatically after the load is complete. Customarily these programs cannot otherwise be broken. Well, I say they cannot be broken; the knowledgeable among us know that you can stop such a program by getting into the FAST mode, then doing a RAND USR 832 (or RAND USR 836). However, this program will do a SAVE as well.

  1 REM E1CDBB02E821FDF8A7ED5220F421DB04C3FC0200000000000000
10 REM SAVE A SELF-RUN PROGRAM
20 FAST
30 LET A=124
40 FOR I=508 TO 929
50 POKE I+A*256,PEEK I
60 NEXT I
70 LET B=A*256+834
80 POKE B,55
90 POKE B+7,A+3
100 POKE B+32,6
110 POKE B+33,A+2
120 POKE B+38,A+3
130 POKE B+60,A+3
140 POKE B+64,A+1
150 FOR J=1 TO 25
160 LET C=16512+J*2
170 POKE J+A*256+517,(PEEK C-28)*16+PEEK (C+1)-28
180 NEXT J
190 PRINT USR B
200 PRINT "THIS PROGRAM WILL SAVE PROGRAMS THAT CANNOT BE BROKEN INTO. PSION CHESS, FOR EXAMPLE."
210 PRINT ,,,,"RUN PROGRAM.",,"WHEN PATTERN APPEARS, PLAY THE UNSAVEABLE PROGRAM"
220 PRINT ,,"THE SCREEN WILL GO BLANK ..... INSERT A FRESH TAPE..... PUSH RECORD BUTTON .... PRESS ""S"" TO SAVE"