Formatted LIST 
by Jim Patterson
from Personal Computer News, 14th April 1984


Routine POKE at Spectrum listings

The standard Spectrum does not come with a list option function (like
LISTO on the BBC) so I have written a machine code version of this
function. The routine will indent all FOR-NEXT loops. It can be placed
anywhere in available RAM. Location 23728 may be POKEd with the number
of [extra] spaces wanted between the line number and the line code.
For example POKE 23728,2 will leave 2 spaces. POKE 23728,32 leaves a
whole line blank, in between the program lines - producing an easy-to-
read listing.

As there is no printer option, it is possible to type OPEN #2,"p" to
send everything to the printer and CLOSE #2 to stop the printer.

Jim Patterson, Huonville, Tasmania, Australia

