-Le: No Macro expansion in listing file

Group

Output

Scope

Assembly unit

Syntax
  -Le

  
Arguments

None

Default

None

Description

Switches on the generation of the listing file, but macro expansions are not present in the listing file. The listing file contains macro definition and invocation lines as well as expanded include files.

Example
  ASMOPTIONS=-Le
  
  

In the following example of assembly code, the cpChar macro accepts two parameters. The macro copies the value of the first parameter to the second one.

When the -Le option is specified, the assembly code in the following listing along with additional source code (Listing: Example source code from an included file) from the macro.inc file generates an assembly output listing file (Listing: Example assembler output listing):

Listing: Example assembly source code

         XDEF Start
MyData:  SECTION

char1:   DS.B  1

char2:   DS.B  1

         INCLUDE "macro.inc"

CodeSec: SECTION

Start:

         cpChar char1, char2

         NOP
Listing: Example source code from an included file

cpChar:  MACRO
           LDA  \1

           STA  \2

         ENDM
Listing: Example assembler output listing

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

    1    1                              XDEF Start

    2    2                     MyData:  SECTION

    3    3   000000            char1:   DS.B  1

    4    4   000001            char2:   DS.B  1

    5    5                              INCLUDE "macro.inc"

    6    1i                    cpChar:  MACRO

    7    2i                             LDA  \1

    8    3i                             STA  \2

    9    4i                             ENDM

   10    6                     CodeSec: SECTION

   11    7                     Start:

   12    8                              cpChar char1, char2

   15    9   000006 9D                  NOP

The Assembler stores the content of included files in the listing file. The Assembler also stores the macro definition and invocation in the listing file.

The Assembler does not store the macro expansion lines in the listing file.

For a detailed description of the listing file, see the Assembler Listing File chapter.

See also

-L: Generate a listing file

-Lc: No Macro call in listing file

-Ld: No macro definition in listing file

-Li: No included file in listing file