--- title: "Syntactic SUM – TS2068" id: 76644 type: "computer_media" slug: "syntactic-sum-ts2068" url: "http://localhost/computer_media/syntactic-sum-ts2068/" markdown_url: "http://localhost/computer_media/syntactic-sum-ts2068.md" published_at: "2026-11-11T08:02:16+00:00" modified_at: "2026-11-11T08:02:16+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/syntactic-sum-ts2068-1.png" excerpt: "Calculate the Syntactic Sum of a TS2068 BASIC program, to check it against the number printed with Syntax listings." 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: "Michael S. Shaw" slug: "michael-s-shaw" taxonomy: "indiv" url: "http://localhost/indiv/michael-s-shaw/" genre: - name: "Utility" slug: "utility" taxonomy: "genre" url: "http://localhost/type/utility/" media_type: "Program" programmers: - name: "Michael S. Shaw" slug: "michael-s-shaw" taxonomy: "indiv" url: "http://localhost/indiv/michael-s-shaw/" mediadate: "1984" images: - url: "http://localhost/wp-content/uploads/2026/11/syntactic-sum-ts2068-1.png" article_media: - id: 19868 title: "Syntactic SUM – TS2068" type: "article" url: "http://localhost/article/syntactic-sum-ts2068/" media_type_tags: "Utility" license: false --- # Syntactic SUM – TS2068 A 35-byte machine-code routine that adds up the bytes of the BASIC program in memory and returns the total, the Syntactic Sum that Syntax printed under its listings to help readers find typing mistakes. The BASIC lowers RAMTOP, POKEs the bytes from a DATA line to 65500, and tells you to use PRINT USR 65500. The routine runs anywhere in RAM. Syntax granted everyone the right to use the program and publish the sums it produces, but prohibited copying it without written consent, so no download is offered here. Published in Syntax February 1984 ([Syntactic SUM – TS2068](https://timexsinclair.com/article/syntactic-sum-ts2068/)). ## Source Code ``` 5 REM 2068 Syntactic Sum 10 CLEAR 65499 20 FOR a=65500 TO 65534 30 READ d 40 POKE a,d 50 NEXT a 60 PRINT "TS2068 Syntactic Sum Loaded" 70 PRINT "Use PRINT USR 65500 to execute." 80 DATA 167,042,075,092,237,075,083,092,080,089,237,066,035,229,033,000,000,193,011,120,177,040,009,197,026,019,006,000,079,009,024,241,068,077,201 ```