I just got the newsletter, it’s great. There is one thing that I noticed: you don’t have VERIFY on program printouts. I made a printout verifier and saved it on Side B of the “new member’s tape”. I also enclose a listing, since the program is so short.
Now let me explain what the program does. Right after you LLIST a program to put it in the newsletter you MERGE “VERIFY” and run it (GOTO 9993). Then COPY the results or change line 9999 to LPRINT instead of PRINT, and then RUN 9993. The result is a list of all the line numbers and a code for each. (the code is just the codes of all the characters in the line added up). You then supply the VERIFY codes (with the line numbers) along with the program in the newsletter.
What happens now is, when someone, let’s say me keys in a program and it doesn’t work due to the fact that I mistyped some small thing. I MERGE “VERIFY” RUN 9993, and by comparing my codes with the codes in the newsletter, I find the difference quickly, and know what line is wrong.
My program works on the 2068 and Spectrum, and I’m sure that it could be adapted for the ZX81.
There is something that you have to watch with “VERIFY”, and that is if you use E-mode 0-9, or E-mode Caps 0-9, or TRUE/INV Video ,to make things stand out (like REM statements). They don’t appear on printout, yet make a difference to the code of that line. If you are going to use “VERIFY” on a program with the above it is better to totally rewrite the line as turning one of them ON and then OFF does not erase the ON marker.
You can test “VERIFY” on itself by changing the last part of line 9995 from IF ln 9992 THEN STOP to IF ln 9999 THEN STOP. The proper code for “VERIFY” when the above change is made is below. I think the code for line 9999 is a neat coincidence.
This article comes from one of our very new members in Hamilton. Thank you Chris, and welcome to our club
the editor
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
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.