--- title: "VERIFY" id: 77535 type: "computer_media" slug: "verify" url: "http://localhost/computer_media/verify/" markdown_url: "http://localhost/computer_media/verify.md" published_at: "2026-11-15T18:38:09+00:00" modified_at: "2026-11-15T18:38:09+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/verify-1.png" excerpt: "MERGE it with a program and it prints a check code for every line, to find typing mistakes in a listing." post_tag: - 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: "Chris Taylor" slug: "chris-taylor" taxonomy: "indiv" url: "http://localhost/indiv/chris-taylor/" genre: - name: "Programming" slug: "programming" taxonomy: "genre" url: "http://localhost/type/programming/" media_type: "Program" programmers: - name: "Chris Taylor" slug: "chris-taylor" taxonomy: "indiv" url: "http://localhost/indiv/chris-taylor/" mediadate: "1986" images: - url: "http://localhost/wp-content/uploads/2026/11/verify-1.png" - url: "http://localhost/wp-content/uploads/2026/11/verify-2.png" article_media: - id: 38316 title: "Verify" type: "article" url: "http://localhost/article/verify/" media_type_tags: "Programming" license: false --- # VERIFY A seven-line printout verifier for typing in listings. MERGE it with a program and GO TO 9993: it walks through the program in memory and prints each line number with a check code for that line, skipping the hidden five-byte number forms. Compare the codes with those printed beside a listing and the mistyped line shows up at once. The author meant the newsletter to print VERIFY codes with its listings; it works on the TS2068 and the Spectrum. As printed, the comparison sign in line 9995 (IF ln 9992 THEN STOP) did not print, so the program stops before anything is printed. The code is a count of the characters in each line rather than a sum of their codes, and E-mode colour and INVERSE VIDEO/TRUE VIDEO control codes count too, as the article warns. Published in Sinc-Link August-September 1986 ([Verify](https://timexsinclair.com/article/verify/)). ## Source Code ``` 9993 REM VERIFY by Chris Taylor 9994 LET a=PEEK 23635+256*PEEK 23636 9995 LET ln=PEEK (a+1)+256*PEEK a: LET a=a+2: LET co=0: IF ln 9992 THEN STOP 9996 LET a=a+1: LET i=PEEK a: IF i=13 THEN GO TO 9999 9997 IF i=14 THEN LET a=a+5: GO TO 9996 9998 LET co=co+1: GO TO 9996 9999 PRINT ln;"-";co: LET a=a+1: GO TO 9995 ```