REM CREATOR (1K-16K ZX-81)
by L G Baumann
from ZX Computing 31 (November 1986), page 79

In your July issue, Page 81, you give a program requiring 235 reserved spaces
in a REM statement. I have seen programs requiring even more space than this
and it can be very boring and slow creating the necessary REM.

The following little program makes the job much easier and is worth keeping as
a stock item on tape.

If you want to provide, say. 309 spaces then create 2 more REM lines as
duplicates of line 1 by editing line 1 and changing its line number: i.e. 1
REM, 2 REM and 3 REM. Each of these will represent 100 spaces. Add 9 zeros to
the REM in line 9. Replace the X in line 10 with 309. Run the program and wait
a few seconds for the program to run through.

You will find that 1 REM will have disappeared. Delete the rest of the unwanted
lines.

To provide say 295 spaces create the same 3 REM lines as explained above (=300
spaces) and then remove 5 zeros from 3 REM, this time replacing X with 295,
then RUN.

If zeros are not liked any other character can be used by changing the 28 in
line 50 to the code of the desired character.
