--- title: "Save Part of a Bad Tape" id: 77507 type: "computer_media" slug: "save-part-of-a-bad-tape" url: "http://localhost/computer_media/save-part-of-a-bad-tape/" markdown_url: "http://localhost/computer_media/save-part-of-a-bad-tape.md" published_at: "2026-11-15T18:38:13+00:00" modified_at: "2026-11-15T18:38:13+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/save-part-of-a-bad-tape-1.png" excerpt: "Keep the part of a program that loads before a tape dropout, with a patched copy of the ZX81 tape loader." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" genre: - name: "Tape" slug: "tape" taxonomy: "genre" url: "http://localhost/type/tape/" media_type: "Program" download_url: "https://archive.org/download/timex-sinclair-software-archive/Save%20Part%20of%20a%20Bad%20Tape%20%281990%29%28-%29%28TS1000%29%28Program%29.zip" mediadate: "1990" images: - url: "http://localhost/wp-content/uploads/2026/11/save-part-of-a-bad-tape-1.png" - url: "http://localhost/wp-content/uploads/2026/11/save-part-of-a-bad-tape-2.png" article_media: - id: 23198 title: "ZX81 Tape Library" type: "article" url: "http://localhost/article/zx81-tape-library/" media_type_tags: "Tape" license: false --- # Save Part of a Bad 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](https://timexsinclair.com/article/zx81-tape-library/)). ## 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" ```