--- title: "CK Type" id: 77807 type: "computer_media" slug: "ck-type" url: "http://localhost/computer_media/ck-type/" markdown_url: "http://localhost/computer_media/ck-type.md" published_at: "2026-11-19T12:55:00+00:00" modified_at: "2026-11-19T12:55:00+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/ck-type-1.png" excerpt: "Prints the line number, byte count and a checksum for every line of the BASIC program in memory, to check typed-in listings." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - 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: "Stan Lemke" slug: "stan-lemke" taxonomy: "indiv" url: "http://localhost/indiv/stan-lemke/" genre: - name: "Utility" slug: "utility" taxonomy: "genre" url: "http://localhost/type/utility/" media_type: "Program" programmers: - name: "Stan Lemke" slug: "stan-lemke" taxonomy: "indiv" url: "http://localhost/indiv/stan-lemke/" download_url: "https://archive.org/download/timex-sinclair-software-archive/CK%20Type%20%281987%29%28Lemke%2C%20Stan%29%28TS2068%29%28US%29%28Program%29.zip" tsrun_member: "CK Type (1987)(Lemke, Stan)(TS2068)(US)(Program)/CK Type (1987)(Lemke, Stan)(TS2068)(US)(Program).tap" mediadate: "1987" images: - url: "http://localhost/wp-content/uploads/2026/11/ck-type-1.png" - url: "http://localhost/wp-content/uploads/2026/11/ck-type-2.png" article_media: - id: 6266 title: "CK Type" type: "article" url: "http://localhost/article/ck-type/" - id: 15389 title: "CK Type 1000" type: "article" url: "http://localhost/article/ck-type-1000/" - id: 15453 title: "One More Word On “CK TYPE”" type: "article" url: "http://localhost/article/one-more-word-on-ck-type/" - id: 15471 title: "Comments on CK Type" type: "article" url: "http://localhost/article/comments-on-ck-type/" related_content: - id: 77952 title: "CK Type 1000" type: "computer_media" url: "http://localhost/computer_media/ck-type-1000/" media_type_tags: "Utility" license: false --- # CK Type A type-in checker. CK TYPE goes through the BASIC program in memory and prints, for every line, the line number, the number of bytes in the line and a checksum of those bytes. If a listing is published with its CK TYPE output, you can run CK TYPE on your typed copy and see at once which lines differ. The checksum adds each byte of the line with weights that alternate 2, 1, 2, 1, so it also catches transposed characters, and upper and lower case give different sums. Output goes to the screen and, with LPRINT, to the TS2040 printer at the same time. To use the BASIC version, MERGE CK TYPE with your program (which must not use lines 9991 to 9999) and RUN 9991. Lines 9987 to 9990 are REM directives for the TIMACHINE compiler and can be left out if you do not have it; RUN on its own prints CK TYPE’s own figures, which match the article’s Listing B. The machine code version (460 bytes at 64888, printed as a POKE table) does the same job: load your BASIC program, then LOAD “CK TYPE” CODE and RANDOMIZE USR 64888. The tape has the BASIC program and the machine code as printed. The article’s text has two slips that are not in the program: it gives the SAVE length as 640 instead of 460 in one place and the LOAD address as 64999 instead of 64888 in another. Published in Time Designs Magazine May/June 1987 ([CK Type](https://timexsinclair.com/article/ck-type/)). ## Source Code ``` 9987 REM ! LIST 9988 REM ! LPRINT 9989 REM !INT +START,STOP,BYT,LINE,LENGTH,SUM,ODD,I 9990 REM ! OPEN # 9991 LET start=256*PEEK 23636+PEEK 23635: LET stop=256*PEEK 23628+PEEK 23627: LET byt=start 9992 LET line=0: LET length=0: LET sum=0 9993 LET line=256*PEEK byt+PEEK (byt+1): LET byt=byt+2 9994 LET length=256*PEEK (byt+1)+PEEK byt: LET byt=byt+2 9995 LET odd=1: FOR i=1 TO length: LET sum=sum+(odd+1)*PEEK byt: LET odd=NOT odd: LET byt=byt+1: NEXT i 9996 PRINT line;TAB 6;": ";length;TAB 13;": ";sum 9997 LPRINT line;TAB 6;": ";length;TAB 13;": ";sum 9998 IF byt