-Lasmc: Configure listing file

Group

Output

Scope

Assembly unit

Syntax
  -Lasmc={s|r|m|l|k|i|c|a}
  
  
Arguments

s - Do not write the source column

r - Do not write the relative column (Rel.)

m - Do not write the macro mark

l - Do not write the address (Loc)

k - Do not write the location type

i - Do not write the include mark column

c - Do not write the object code

a - Do not write the absolute column (Abs.)

Default

Write all columns.

Description

The default-configured listing file shows a lot of information. With this option, the output can be reduced to columns which are of interest. This option configures which columns are printed in a listing file. To configure which lines to print, see the following assembler options: -Lc: No Macro call in listing file, -Ld: No macro definition in listing file, -Le: No Macro expansion in listing file, and -Li: No included file in listing file.

Example

For the following assembly source code, the Assembler generates the default-configured output listing, as shown in the following listing:

  DC.B "Hello World"

  
  DC.B 0

  
Listing: Example assembler output listing

 
Abs. Rel.   Loc    Obj. code   Source line

 ---- ----   ------ ---------   -----------

    1    1    000000 4865 6C6C       DC.B "Hello World"

              000004 6F20 576F

              000008 726C 64

    2    2    00000B 00              DC.B 0

In order to get this output without the source file line numbers and other irrelevant parts for this simple DC.B example, the following option is added:

-Lasmc=ramki. This generates the output listing as shown in the following listing:

Listing: Example output listing

Loc    Obj. code Source line
------ --------- -----------

000000 4865 6C6C     DC.B "Hello World"

000004 6F20 576F

000008 726C 64

00000B 00            DC.B 0

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

See also

Assembler options: