User’s Manual MCUez HC12 Assembler
186 Assembler Directives MOTOROLA
Assembler Directives
8.20 LIST — Enable ListingSyntax: LIST
Description: Specifies that the following instructions must be inserted in the
listing and debug files. The listing file is only generated if the
option -L is specified on the command line.
The source text following the LIST directive is listed until a
NOLIST or an END is reached.
This directive is not written to the listing and debugfile. When
neither the LIST nor NOLIST directives are specified in a
source file, all instructions are written to the list file.
Example: This portion of code:
aaa: nop
list
bbb: nop
nop
nolist
ccc: nop
nop
list
ddd: nop
nop
Generates this listing file:
1 1 000000 A7 aaa: nop
2 2
4 4 000001 A7 bbb: nop
5 5 000002 A7 nop
6 6
13 13 000005 A7 ddd: nop
14 14 000006 A7 nop
The gap in the location counter is due to instructions defined in
the NOLIST-LIST block.
See also: 8.26 NOLIST — Disable Listing