--- title: "ROM Test" id: 81157 type: "computer_media" slug: "rom-test" url: "http://localhost/computer_media/rom-test/" markdown_url: "http://localhost/computer_media/rom-test.md" published_at: "2026-11-26T23:47:36+00:00" modified_at: "2026-11-26T23:47:36+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/rom-test-1.png" excerpt: "Checksums the TS1000/ZX81 ROM to check it and tell ROM versions apart." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" 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/" indiv: - name: "Cliff Danielson" slug: "cliff-danielson" taxonomy: "indiv" url: "http://localhost/indiv/cliff-danielson/" genre: - name: "Utility" slug: "utility" taxonomy: "genre" url: "http://localhost/type/utility/" media_type: "Program" programmers: - name: "Cliff Danielson" slug: "cliff-danielson" taxonomy: "indiv" url: "http://localhost/indiv/cliff-danielson/" download_url: "https://archive.org/download/timex-sinclair-software-archive/ROM%20Test%20%281982%29%28Danielson%2C%20Cliff%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1982" images: - url: "http://localhost/wp-content/uploads/2026/11/rom-test-1.png" article_media: - id: 22464 title: "ROM Test" type: "article" url: "http://localhost/article/rom-test/" - id: 22476 title: "Your REMs" type: "article" url: "http://localhost/article/your-rems/" media_type_tags: "Utility" license: false --- # ROM Test Adds up every byte of the ROM to give a checksum, as a check that the ROM holds no error and a way to tell ROM versions apart. Printed for the 8K ROM of the TS1000 and ZX81. RUN it, in FAST mode to save time; after a few minutes it prints the sum. The thousands are kept in B and the rest in A, so the two print side by side as one number. The article’s 8K ROM gives 855106; with line 5 changed to LET K=4 (the first 4K) the sum is 428876, and the article gives 390829 for the 4K ZX80 ROM with K=4. It runs in 1K. The February 1983 newsletter ([Your REMs](https://timexsinclair.com/article/your-rems/)) printed 854885 for the old 8K ROM with known bugs. The article is unsigned; it is credited to the newsletter’s editor, Cliff Danielson. Published in the BCS Sinclair-Timex User Group Newsletter December 1982 ([ROM Test](https://timexsinclair.com/article/rom-test/)). ## Source Code ``` 5 LET K=8 10 LET A=0 20 LET B=0 30 FOR I=1 TO 1024*K 50 LET A=A+PEEK(I-1) 60 IF A<1000 THEN GOTO 90 70 LET B=B+1 80 LET A=A-1000 90 NEXT I 100 PRINT B;A ```