PRLIN

See all articles from CATS v6 n9
Author(s): Cliff Watson
Publication: CATS Newsletter
Pub Details: CATS v6 n9 (Volume 6, Issue 9)
Date: January 1989
Pages: 5-6

Have you T/S 1000 or Sinclair ZX81 owners ever wished that you could use the “COPY” command to copy less than the whole screen without having to “BREAK” when the desired number of lines has been printed? If so, read on.

Type in the following program. You can edit line 9989 to make lines 9996 and 9997. Change the -6 in line 9989 to -5 in line 9996. “RUN” the program. Enter “STOP” when the cursor appears. Note that line 9999 has changed from “12345” to “->??#”. Delete lines 9989 through 9994.

To use this program, you can:

A) Use two lines in the program where you want to “COPY” less than the whole screen. The lines are: “LET PRLIN=XX” and “GOSUB 9996”. Where “XX” is the number of lines you want to copy. This number can be different in each location. Lines 9996-9999 are needed for this option.

B) Use “GOSUB 9995” and enter the number of lines to be copied when the cursor appears.

C) Change “18” in line 9991 to the number of lines to be copied and use “GOSUB 9997”. This is suitable for use when the number of lines is the same throughout a program but is not the “22” used by “COPY”. The only lines you need to keep for this option are lines 9997-9999.

9989 LET A=(PEEK 16396+256*PEEK 16397-6)
9990 POKE A,22
9991 POKE (A+1),18
9992 POKE (A+2),195
9993 POKE (A+3),107
9994 POKE (A+4),8
9995 INPUT PRLIN
9996 POKE (PEEK 16396+256*PEEK 16397-5),PRLIN

[The listing is marked “Continued on page 7”, but its remaining lines (9997-9999) are not printed anywhere in this issue.]

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