5 -l – Motorola HC12 User Manual

Page 85

Advertising
background image

Assembler Options
Assembler Options

MCUez HC12 Assembler

User’s Manual

MOTOROLA

Assembler Options

85

5.4.5 -L

-L:

Generates a listing file

Group:

OUTPUT

Scope:

Assembly unit

Syntax:

-L

Arguments:

None

Default:

None

Description:

Switches on generation of the listing file. This listing file will
have the same name as the source file, but with the extension
.lst. The listing file contains macro definitions, invocation, and
expansion lines as well as expanded include files.

Example:

ASMOPTIONS=-L

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

When option

-L

is specified, the following portion of code:

INCLUDE "macro.inc"

CodeSec: SECTION

Start:

cpChar char1, char2

NOP

Advertising