--- title: "ZX81 Calculator" id: 77949 type: "computer_media" slug: "zx81-calculator" url: "http://localhost/computer_media/zx81-calculator/" markdown_url: "http://localhost/computer_media/zx81-calculator.md" published_at: "2026-11-19T15:04:20+00:00" modified_at: "2026-11-19T15:04:20+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/zx81-calculator-1.png" excerpt: "Turn the ZX81 into a chaining calculator: type any expression and see the answer, with L holding the last result." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" 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: "Alex Burr (K5XY)" slug: "alex-burr" taxonomy: "indiv" url: "http://localhost/indiv/alex-burr/" genre: - name: "Mathematics" slug: "mathematics" taxonomy: "genre" url: "http://localhost/type/mathematics/" media_type: "Program" programmers: - name: "Alex Burr (K5XY)" slug: "alex-burr" taxonomy: "indiv" url: "http://localhost/indiv/alex-burr/" download_url: "https://archive.org/download/timex-sinclair-software-archive/ZX81%20Calculator%20%281982%29%28Burr%2C%20Alex%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1982" images: - url: "http://localhost/wp-content/uploads/2026/11/zx81-calculator-1.png" - url: "http://localhost/wp-content/uploads/2026/11/zx81-calculator-2.png" article_media: - id: 19387 title: "ZX81 Calculator" type: "article" url: "http://localhost/article/zx81-calculator/" media_type_tags: "Mathematics" license: false --- # ZX81 Calculator Two short programs that put the ZX81 into a calculator mode. RUN (or GOTO 100), then type any expression the computer accepts, however complicated, and press ENTER; the answer appears at the bottom of the screen and the screen scrolls up, so a long session never ends with report 5. The last answer is kept in L, so L/2 halves it. Version 1 (4 lines) shows only the answers. Version 2 (7 lines) takes the input as a string and shows what you typed, then the answer indented below it. BREAK does not work while the program waits for input; to stop, enter any number and then press BREAK. Both versions are in the download. Published in Syntax December 1982 ([ZX81 Calculator](https://timexsinclair.com/article/zx81-calculator/)). ## Source Code ``` Version 1: 100 INPUT L 110 SCROLL 120 PRINT L 130 GOTO 100 Version 2 (shows what you typed): 100 INPUT L$ 110 LET L=VAL L$ 120 SCROLL 130 PRINT L$ 140 SCROLL 150 PRINT " ";L 160 GOTO 100 ```