PROGRAM NAME (ZX81)
by Alan Went, Colchester, Essex
from Your Computer (November 1982), Page 110

Everyone must at some time have recorded a program on tape and forgotten to
label the cassette. To find out what the program is, it must be loaded,
which on the ZX-81 with a full 16K program can take 10 minutes. This
routine, which takes up about 90 bytes, will read the name that you gave
the program, in a few seconds, without loading it, and without destroying
the existing program.

The routine is a modified version of the ZX ROM Load routine, but whereas
the ROM only uses the name to compare the program on tape against the
program name given after LOAD. I have modified it to print the name on the
screen.

To use the routine start the tape-player then RUN. The normal
waiting-to-load pattern will appear on the screen. A few seconds after the
program load patterns appear, the program will stop with the program name
on the screen.

It is advisable to keep the name as short as possible but up to 90
characters can be used.

[Note: The program as listed only works with the edition 2 ZX81 ROM because
it calls into the ROM to set FAST mode but the location of this routine is
different between the two editions of the ROM. However, the program can be
used with the edition 1 ROM by manually setting the computer into FAST mode
and then starting the program with RAND USR 16517. PF]
