Hidden REMs

Author(s): Richard Kelly
Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v4 n9 (Volume 4, Issue 9)
Date: September 1983
Pages: 17

In PROGRAM ACCESS SECURITY SYSTEM, location 16657 contains the code 126. This code tells the computer that the next five bytes (in 16658-16662) are a numerical constant. The display ignores the six bytes, and does not print them in the REM statement. Why?

When you enter a numerical constant, say 999, the computer stores this as the three bytes representing 999, followed by code 126 and five bytes that represent the floating point binary equivalent of 999. LIST never displays the 126 or the following five bytes, avoiding a screen full of binary numbers.

Use this trick to hide information in your REM statements. To hide a copyright message, for example, type in the following line.

  10 REM ▒XCOPY XRIGHTX1983.▒

Now POKE the locations of each X–16517, 16523 and 16529–with code 126. Only the graphics remain.

  10 REM ▒▒

PEEK these locations and you will see the hidden message. Do this anytime by preceding every five characters with an X (which you POKE to CHR$ 126).–RWK

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