--- title: "COPY a Block of Lines" id: 77368 type: "computer_media" slug: "copy-a-block-of-lines" url: "http://localhost/computer_media/copy-a-block-of-lines/" markdown_url: "http://localhost/computer_media/copy-a-block-of-lines.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-block-of-lines-1.png" excerpt: "Print a block of screen lines on the ZX printer with a 12-byte routine that jumps into the ROM's COPY." 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%20Block%20of%20Lines%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-block-of-lines-1.png" article_media: - id: 23319 title: "Another Printer Tip: ZX81/TS 1000" type: "article" url: "http://localhost/article/another-printer-tip-zx81-ts-1000/" media_type_tags: "Printer" license: false --- # COPY a Block of Lines Copies a block of screen lines to the ZX printer: give the number of lines and the start line, and a 12-byte routine sets the ROM’s COPY going from that line for that many lines. The start offset is passed through SEED with RAND, the trick the article uses instead of POKEing it from BASIC. In the article you make a 1 REM with 12 bytes, RUN 110 and type the code, then delete lines 110-140. The download is that finished program with the code already in a line 1 REM (the listing does not print line 1); the full printed listing is in the .txt. Start line 1 does not work as printed: it gives RAND 0, which seeds from the clock, so start from line 2 or later. Published in Sinc-Link March-April 1991 ([Another Printer Tip: ZX81/TS 1000](https://timexsinclair.com/article/another-printer-tip-zx81-ts-1000/)). ## Source Code ``` 10 PRINT "NUMBER OF LINES ?" 20 INPUT A 30 POKE 16515,A 40 PRINT "START LINE ?" 50 INPUT A 60 LET A=(A-1)*33 70 RAND A 80 POKE 16520,PEEK 16434 90 POKE 16521,PEEK 16435 100 RAND USR 16514 110 FOR F=16514 TO 16525 120 INPUT A 130 POKE F,A 140 NEXT F The code: 22,0,42,12,64,1,0,0,9,195,110,8 ```