ZX81 Tips

See all articles from Sinc-Link v4 n3
Publication: Sinc-Link
Pub Details: Sinc-Link v4 n3 (Volume 4, Issue 3)
Date: May/June 1986
Pages: 2

When using the first program line for entering machine code, PEEKing the address 16511 will show the number of characters in the REM line. If there are more than 256 characters in the line (a rare occurance) then enter PRINT PEEK 16511 + 256 * PEEK 16512.

Use the following line in your program to prevent an accidental screen memory overflow error.

IF PEEK 16442 < 4 then CLS (or SCROLL)