LIST - Enable Listing

Syntax
LIST
Synonym

None

Description

Specifies that instructions following this directive must be inserted into the listing and into the debug file. This is a default option. The listing file is only generated if the -L: Generate a listing file assembler option is specified on the command line.

The source text following the LIST directive is listed until a NOLIST - Disable Listing or an END - End assembly assembler directive is reached.

This directive is not written to the listing and debug files.

Example

The assembly source code using the LIST and NOLIST directives in the following listing generates the output listed in the next listing.

Listing: Using the LIST and NOLIST assembler directives

aaa:    NOP
        LIST

bbb:    NOP

        NOP

        NOLIST

ccc:    NOP

        NOP

        LIST

ddd:    NOP         NOP
Listing: Output

 Abs. Rel.   Loc    Obj. code   Source line
 ---- ----   ------ ---------   -----------

   1    1   000000 9D          aaa:   NOP

   2    2

   4    4   000001 9D          bbb:   NOP

   5    5   000002 9D                 NOP

   6    6

  12   12   000005 9D          ddd:   NOP

  13   13   000006 9D                 NOP