ZX81 Scroll Clear

See all articles from Sinc-Link v9 n5
Publication: Sinc-Link
Pub Details: Sinc-Link v9 n5 (Volume 9, Issue 5)
Date: September/October 1991
Pages: 16

While messing around on my 16K ZX-81 I found a way to make the screen Clear quickly after scrolling. Normally a CLS command or a return to non-Scrolled Printing takes a long time because the display has to be padded out with spaces on the expanded machines. This program will illustrate this:

10 FOR N = 1 TO 22
20 SCROLL
30 PRINT "TEST"
40 NEXT N
50 CLS

See how long the CLS command takes. The trick is to artificially pad the display file on each scroll, by using a Tab to move the Print position to the end of the line. To show this, change the line 30 in the program to:

30 PRINT "TEST"; TAB 31;

and RUN the program again. By forcing the ZX-81 to print a full line of 32 spaces each time, the display file remains intact.

Taken from the November 1982 issue of Your Computer…Vol.2 No.11

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