--- title: "Useful Sinclair Programmer Notes: Telephone Number Compression Program" type: "article" slug: "useful-sinclair-programmer-notes-telephone-number-compression-program" url: "http://localhost/article/useful-sinclair-programmer-notes-telephone-number-compression-program/" markdown_url: "http://localhost/article/useful-sinclair-programmer-notes-telephone-number-compression-program.md" published_at: "2026-03-15T01:17:57+00:00" modified_at: "2026-03-15T01:17:57+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Continuation of the Amateur Programmers' Line column exploring a technique for packing 7-digit telephone numbers into 3 bytes of ZX-81/TS1000 RAM. Discusses the encoding strategy, edge cases (leading zeros, digit groups exceeding 255, null/empty numbers requiring reserved codes), and variable-length field design for memory-constrained database applications on orphan computers. Includes a short BASIC type-in program…" category: - name: "TS Bulletin" slug: "ts-bulletin" taxonomy: "category" url: "http://localhost/category/periodicals/ts-bulletin/" post_tag: - name: "BASIC (programming language)" slug: "basic-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/basic-programming-language/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Bill Harmer" slug: "bill-harmer" taxonomy: "indiv" url: "http://localhost/indiv/bill-harmer/" publication_r: id: 10282 title: "TS Bulletin" type: "periodical" url: "http://localhost/periodical/ts-bulletin/" authors_r: - name: "Bill Harmer" slug: "bill-harmer" taxonomy: "indiv" url: "http://localhost/indiv/bill-harmer/" issue: "7" issues_articles: - id: 33992 title: "TS Bulletin S-7-90" type: "issue" url: "http://localhost/issue/ts-bulletin-s-7-90/" pages: "4" pubdate: "September 1990" archive_link: false --- Continuation of the Amateur Programmers’ Line column exploring a technique for packing 7-digit telephone numbers into 3 bytes of ZX-81/TS1000 RAM. Discusses the encoding strategy, edge cases (leading zeros, digit groups exceeding 255, null/empty numbers requiring reserved codes), and variable-length field design for memory-constrained database applications on orphan computers. Includes a short BASIC type-in program demonstrating POKE-based storage and PEEK-based retrieval of a sample phone number using fixed RAM addresses from 16523 upward.