Copy A Portion of Screen To Printer

Author(s): John Pazmino
Publication: ZX-Appeal
Pub Details: ZX-Appeal Summer 87
Date: Summer 1987
Pages: 36
   1 REM Copy a block of the scr
een...by John Pazmino. Reprinted
from the May/Jume issue of LIST
, the newsletter of the Long Isl
and Sinclair Timex User group.

...Occasionally you'll want to c
opy to paper only a boxed-off se
ction of the screen as by doing
COPY. The demo here fOr the 100
0 does such a copy. ***For 2068
line 1050 is LPRINT SCREEN$ (R,C
); OMIT LINE 1040.
2 FOR I=0 TO 511
4 PRINT CHR$ (RND*64)
6 NEXT I
8 COPY
10 PRINT AT 21,0;" INPUT TOP R
OW"
12 INPUT A
14 PRINT AT 21,0;" THEN INPUT
BOTTOM ROW: "
16 INPUT B
18 PRINT AT 21,0;" THEN INPUT
LEFT COLUMN "
20 INPUT X
22 PRINT AT 21,0;" THEN INPUT
RIGHT COLUMN "
24 INPUT Y
26 LPRINT "BLOCK FOR ROWS ";A;
" TO ";B;" AND ","COLUMNS";X;" T
O ";Y;": ",,,
28 GO SUB 1000
30 STOP
1000 REM LPRINT A BLOCK OF SCREE
N
1010 REM LINE 1010 FAST ON 1000
1020 FOR R=A TO B
1030 FOR C=X TO Y
1040 PRINT AT R,C
1050 LPRINT CHR$ PEEK (PEEK 1639
8+256*PEEK 16399);
1060 NEXT C
1070 LPRINT
1080 NEXT R
1090 REM LINE 1090 SLOW ON 1000
1100 RETURN

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.