--- title: "COPY a Specific Line" id: 77370 type: "computer_media" slug: "copy-a-specific-line" url: "http://localhost/computer_media/copy-a-specific-line/" markdown_url: "http://localhost/computer_media/copy-a-specific-line.md" published_at: "2026-11-15T18:39:01+00:00" modified_at: "2026-11-15T18:39:01+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/copy-a-specific-line-1.png" excerpt: "Print a single chosen screen line on the ZX printer with a 19-byte relocatable routine." 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: "Sebastien Boisvert" slug: "boisvert-sebastien" taxonomy: "indiv" url: "http://localhost/indiv/boisvert-sebastien/" genre: - name: "Printer" slug: "printer" taxonomy: "genre" url: "http://localhost/type/printer/" media_type: "Program" programmers: - name: "Sebastien Boisvert" slug: "boisvert-sebastien" taxonomy: "indiv" url: "http://localhost/indiv/boisvert-sebastien/" download_url: "https://archive.org/download/timex-sinclair-software-archive/COPY%20a%20Specific%20Line%20%281991%29%28Boisvert%2C%20Sebastien%29%28TS1000%29%28CA%29%28Program%29.zip" mediadate: "1991" images: - url: "http://localhost/wp-content/uploads/2026/11/copy-a-specific-line-1.png" article_media: - id: 23362 title: "Data-Read-Restore on a TS1000" type: "article" url: "http://localhost/article/data-read-restore-on-a-ts1000-2/" media_type_tags: "Printer" license: false --- # COPY a Specific Line Copies one chosen line of the screen to the ZX printer, where COPY prints the whole screen. A 19-byte relocatable routine moves the line into the printer buffer and prints it with the ROM; the BASIC asks for the line (1-24, 1 = top) and POKEs its offset into the routine. In the article you make a 1 REM of 19 spaces, RUN 100 and type the 19 values, then delete lines 100-130. The download is that finished program, with the code already in the REM; the full printed listing, loader included, is in the .txt. Use lines 10-50 as a subroutine after your own PRINTs (RUN clears the screen first). Published in Sinc-Link January-February 1991 ([Data-Read-Restore on a TS1000](https://timexsinclair.com/article/data-read-restore-on-a-ts1000-2/)). ## Source Code ``` 1 REM ...19 spaces... 10 INPUT L Line to be copied (1-24): 1=top line 20 LET L=(L-1)*33 30 POKE 16519,L-256*INT (L/256) 40 POKE 16520,INT (L/256) 50 RAND USR 16514 100 FOR F=16514 TO 16532 110 INPUT A 120 POKE F,A 130 NEXT F Values (RUN 100): 42:12:64:35:1:0:0:9:1:32:0:17:60:64:237:176:195:83:8 ```