--- title: "STORE/RECALL" id: 77937 type: "computer_media" slug: "store-recall" url: "http://localhost/computer_media/store-recall/" markdown_url: "http://localhost/computer_media/store-recall.md" published_at: "2026-11-19T15:04:17+00:00" modified_at: "2026-11-19T15:04:17+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/store-recall-1.png" excerpt: "Add STORE and RECALL screen commands to ZX81 BASIC: two machine code routines above RAMTOP save a screen and bring it back." 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: "Len Harmon" slug: "len-harmon" taxonomy: "indiv" url: "http://localhost/indiv/len-harmon/" genre: - name: "Utility" slug: "utility" taxonomy: "genre" url: "http://localhost/type/utility/" media_type: "Program" programmers: - name: "Len Harmon" slug: "len-harmon" taxonomy: "indiv" url: "http://localhost/indiv/len-harmon/" download_url: "https://archive.org/download/timex-sinclair-software-archive/STORE-RECALL%20%281983%29%28Harmon%2C%20Len%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1983" images: - url: "http://localhost/wp-content/uploads/2026/11/store-recall-1.png" - url: "http://localhost/wp-content/uploads/2026/11/store-recall-2.png" article_media: - id: 19598 title: "Add Store & Recall to BASIC" type: "article" url: "http://localhost/article/add-store-recall-to-basic/" media_type_tags: "Utility" license: false --- # STORE/RECALL Adds two commands to BASIC as machine code routines placed above RAMTOP, where NEW and LOAD can’t reach them. RAND USR 30000 (STORE) copies the display file to memory, and RAND USR 30012 (RECALL) copies it back to the screen. Use them from inside a program: STORE doesn’t work as a direct command, because the ZX81 clears the screen after every command you type. The 25 bytes are typed as hex into the line 1 REM. When it runs, the loader converts them, POKEs them to 30000, lowers RAMTOP to 30000 and does NEW. The article has you RUN the listing, which SAVEs it (line 2) and goes on to install the routines. The download is that saved program, so it installs the routines as soon as it loads. To protect a stored screen from NEW and LOAD as well, lower RAMTOP to 29000 with POKE 16388,72 and POKE 16389,113. For Hunter’s non-volatile memory at 8K, the article says to delete lines 9 and 10 and change line 4 to LET L=8192; the calls then become RAND USR 8192 and RAND USR 8204. Published in Syntax November 1983 ([Add Store & Recall to BASIC](https://timexsinclair.com/article/add-store-recall-to-basic/)). ## Source Code ``` 1 REM 2A0C40114871011803EDB0C9214871ED5B0C40011803EDB0C9 2 SAVE "ST/RC" 3 FAST 4 LET L=30000 5 FOR F=16514 TO 16563 STEP 2 6 POKE L,(PEEK F-28)*16+PEEK (F+1)-28 7 LET L=L+1 8 NEXT F 9 POKE 16388,48 10 POKE 16389,117 11 NEW ```