Lister



This short machine code program formats the listing so that

each statement is printed on a new line and indented. Since

Basic regards IF . . . THEN as two statements these are

also separated.

  The routine can be saved to tape with:

    SAVE "lister"CODE 65368,66

To use the routine:

    PRINT: RANDOMIZE USR address

to LIST to the screen or by

    PRINT #3: RANDOMIZE USR address

to send to the printer.



Alan Mynett.



[ The attentive reader may have spotted that the address

  given above is the 48K's UDG start address. In fact, the

  routine is relocatable and will run from any address;

  I've taken the liberty of changing the hard-coded 65368

  in the program to USR "a", so that it will load and run

  equally well under 16K. If you want it anywhere else,

  just change the address again.                     -RLB ]