--- title: "Syntactic Sum Loader" id: 77774 type: "computer_media" slug: "syntactic-sum-loader" url: "http://localhost/computer_media/syntactic-sum-loader/" markdown_url: "http://localhost/computer_media/syntactic-sum-loader.md" published_at: "2026-11-18T16:43:12+00:00" modified_at: "2026-11-18T16:43:12+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/syntactic-sum-loader-1.png" excerpt: "Load and RUN this once and the 8K Syntactic Sum checksum routine sits safely above RAMTOP, ready for PRINT USR to check your typing." 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: "Roderick McConnell" slug: "roderick-mcconnell" taxonomy: "indiv" url: "http://localhost/indiv/roderick-mcconnell/" genre: - name: "Utility" slug: "utility" taxonomy: "genre" url: "http://localhost/type/utility/" media_type: "Program" programmers: - name: "Roderick McConnell" slug: "roderick-mcconnell" taxonomy: "indiv" url: "http://localhost/indiv/roderick-mcconnell/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Syntactic%20Sum%20Loader%20%281982%29%28McConnell%2C%20Roderick%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1982" images: - url: "http://localhost/wp-content/uploads/2026/11/syntactic-sum-loader-1.png" - url: "http://localhost/wp-content/uploads/2026/11/syntactic-sum-loader-2.png" article_media: - id: 19301 title: "Syntactic Sum Loader" type: "article" url: "http://localhost/article/syntactic-sum-loader/" related_content: - id: 19729 title: "8K Syntactic Sum" type: "article" url: "http://localhost/article/8k-syntactic-sum/" media_type_tags: "Utility" license: false --- # Syntactic Sum Loader Syntax printed a Syntactic Sum after every listing: a checksum of the program area that tells you whether you typed a program exactly as printed. This loader installs the 8K checksum routine in one step. Enter FAST, then RUN. A machine-code routine in the line 1 REM lowers RAMTOP and clears the space above it (the same effect as POKEing RAMTOP and entering NEW), and the program then POKEs the 24-byte Syntactic Sum routine from the hex string in line 10 into that space. It prints 24 BYTES SAVED and the address to call, for example INPUT USR 32744 on a 16K machine. Now NEW (the routine stays above RAMTOP), type or load a program, and enter PRINT USR with that address to get its Syntactic Sum. Always run the loader in FAST mode; the routine itself works in either mode. The article also explains how to use the loader for other machine-code routines: put the hex in line 10, change line 50 to N+(bytes-1) and line 20 to POKE 16507,(bytes), which must be more than 19. The article has you type Listing 4, RUN it and enter the decimal bytes of Table 1, then add lines 10-90. The download has the machine code already in the REM. [Editor’s note: the program as printed sums to 19631, 7 less than the printed 19638, by the routine itself; the scan shows nothing else that differs. The download matches the scan.] Published in Syntax August 1982 ([Syntactic Sum Loader](https://timexsinclair.com/article/syntactic-sum-loader/)). ## Source Code ``` 1 REM 12345678901234567890123456789012345678901234567 10 LET A$="XXAF47676FE52A0C40117D402B4EE309E3E5ED52E120F5C1C9" 20 POKE 16507,24 30 PRINT USR 16514;" BYTES SAVED" 40 LET N=PEEK 16388+256*PEEK 16389 50 FOR X=N TO N+23 60 LET A$=A$(3 TO ) 70 POKE X,16*(CODE A$-28)+CODE A$(2)-28 80 NEXT X 90 PRINT " INPUT USR ";N ```