ROM Test

Developer(s): Cliff Danielson
Date: 1982
Type: Program
Platform(s): ZX81, TS 1000
Tags: Utility

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) 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).

Image Gallery

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

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