LST - ksherlock/merlin-wiki GitHub Wiki

LST - Listing control

      LST
      LST  ON
      LST  OFF
      LST  RTN                   ; Merlin 16
      LST  FILE,filename         ; Merlin 16+

This controls whether the assembly listing is to be sent to the Apple screen, or other output device, or not. For example, you may use this to send only a portion of the assembly listing to your printer. Any number of LST instructions may be in the source. If the LST condition is OFF at the end of assembly, the symbol table will not be printed.

LST RTN is available in Merlin 16 only and will return the LST status to what it was previous to the last instance of LST. For example, if a macro library had LST OFF at the beginning and LST RTN at the end, the library would not be listed in an assmbly, but in addition, the list status of the main source file, either on or off, would not be disturbed by the included LST commands of the macro library.

LST FILE,filename is available in Merlin 16+ only and will create (or open if already there) the file filename and the assembly listing output will be send to the file as well as to the screen or printer.

Compatibility:

  • Not supported in Merlin 32
  • LST RTN was added in Merlin 16
  • LST FILE was added in Merlin 16+