--- title: "Trouble with Corrupted Files?" type: "article" slug: "trouble-with-corrupted-files" url: "http://localhost/article/trouble-with-corrupted-files/" markdown_url: "http://localhost/article/trouble-with-corrupted-files.md" published_at: "2026-03-14T00:06:10+00:00" modified_at: "2026-03-14T00:06:11+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Explains why TS2068 BASIC files downloaded from PC-based BBSs via Xmodem become corrupted: Xmodem pads the last 128-byte block with garbage bytes that follow the final program line. Solution uses HOT-Z v1.81 (loaded at address 50416) in hex-edit mode to replace the end-of-program byte (DEC 14) with DEC 13 followed by DEC 128, and zero…" category: - name: "The RAMTOP" slug: "the-ramtop" taxonomy: "category" url: "http://localhost/category/periodicals/the-ramtop/" post_tag: - name: "BASIC (programming language)" slug: "basic-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/basic-programming-language/" - name: "BBS" slug: "bbs" taxonomy: "post_tag" url: "http://localhost/tag/bbs/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Greg Popovich" slug: "greg-popovich" taxonomy: "indiv" url: "http://localhost/indiv/greg-popovich/" publication_r: id: 39272 title: "The RAMTOP" type: "periodical" url: "http://localhost/periodical/the-ramtop/" authors_r: - name: "Greg Popovich" slug: "greg-popovich" taxonomy: "indiv" url: "http://localhost/indiv/greg-popovich/" issues_articles: - id: 50275 title: "The RAMTOP Winter 1990" type: "issue" url: "http://localhost/issue/the-ramtop-winter-1990/" pages: "9" pubdate: "Winter 1990" archive_link: false --- # Trouble with Corrupted Files? Explains why TS2068 BASIC files downloaded from PC-based BBSs via Xmodem become corrupted: Xmodem pads the last 128-byte block with garbage bytes that follow the final program line. Solution uses HOT-Z v1.81 (loaded at address 50416) in hex-edit mode to replace the end-of-program byte (DEC 14) with DEC 13 followed by DEC 128, and zero out the next 10 bytes. Step-by-step procedure with memory address illustration.