Save Part of a Bad Tape

Date: 1990
Type: Program
Platform(s): ZX81, TS 1000
Tags: Tape

Recovers what can be loaded from a damaged tape, from the beginning of the program up to the dropout. RUN copies the ROM’s tape-loading routine up to 31740 and patches it with the 25 bytes held as hex in the line 1 REM; when the loading pattern appears, play the damaged tape as for a normal LOAD, and the part that loaded is kept instead of being lost.

From the club’s ZX81/TS1000 tape library, tape #65; the article “ZX81 Tape Library” is by George Chambers, but no author is printed for the program. Needs 16K.

Published in Sinc-Link September-October 1990 (ZX81 Tape Library).

Related Articles

Two programs from the tape library. One program recovers part of a bad tape. The other saves a self-running program.

Image Gallery

Source Code

  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"

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.