|
|
|
|
|
by unsui
438 days ago
|
|
My favorite was the "TYPO II" ("Type Your Program Once") application, which was part of every Antic! Magazine program listing: https://www.atarimagazines.com/v3n9/TYPOII.html
https://www.atarimagazines.com/antic/ This was wrapper around the BASIC interpreter that printed out a 2-character checksum of each entered code line. The magazine printing also had an associated 2-character checksum for each line. Your job: make sure the checksums matched. As a teenager who only had cassette-based storage (couldn't afford a disk drive) and was addicted to typing in programs from Antic! and ANALOG magazines, this was a lifesaver. (ANALOG's checksum program wasn't quite as convenient, and, IIRC, required a disk drive?) |
|
The checksum algorithm is fairly simple: line 32150 sums the products of all character positions and character codes, and lines 32160-32180 does a modulus to convert them to printable characters. The multiply-by-position bit is clever because it allows the checksum to flag transposed characters. ISBN-10 uses a similar scheme[2].
[1] https://www.atarimagazines.com/software/displayfile.php?file...
[2] https://en.wikipedia.org/wiki/ISBN#ISBN-10_check_digits