SPRU513Y August 2001 – June 2022 SM320F28335-EP
Start/Stop Macro Expansion Listing
.mlist
.mnolist
Two directives enable you to control the listing of macro and repeatable block expansions in the listing file:
The .mlist directive allows macro and .loop/.endloop block expansions in the listing file.
The .mnolist directive suppresses macro and .loop/.endloop block expansions in the listing file.
By default, the assembler behaves as if the .mlist directive had been specified.
See Chapter 7 for more information on macros and macro libraries. See the .loop/.break/.endloop topic for information on conditional blocks.
This example defines a macro named STR_3. The first time the macro is called, the macro expansion is listed (by default). The second time the macro is called, the macro expansion is not listed, because a .mnolist directive was assembled. The third time the macro is called, the macro expansion is again listed because a .mlist directive was assembled.
1 STR_3 .macro P1, P2, P3
2 .string ":p1:", ":p2:", ":p3:"
3 .endm
4
5 000000 STR_3 "as", "I", "am"
1 000000 003A .string ":p1:", ":p2:", ":p3:"
000001 0070
000002 0031
000003 003A
000004 003A
000005 0070
000006 0032
000007 003A
000008 003A
000009 0070
00000a 0033
00000b 003A
6 00000c 003A .string ":p1:", ":p2:", ":p3:"
00000d 0070
00000e 0031
00000f 003A
000010 003A
000011 0070
000012 0032
000013 003A
000014 003A
000015 0070
000016 0033
000017 003A
7
8 .mnolist
9 000018 STR_3 "as", "I", "am"
10 .mlist
11 000024 STR_3 "as", "I", "am"
1 000024 003A .string ":p1:", ":p2:", ":p3:"
000025 0070
000026 0031
000027 003A
000028 003A
000029 0070
00002a 0032
00002b 003A
00002c 003A
00002d 0070
00002e 0033
00002f 003A
12 000030 003A .string ":p1:", ":p2:", ":p3:"
000031 0070
000032 0031
000033 003A
000034 003A
000035 0070
000036 0032
000037 003A
000038 003A
000039 0070
00003a 0033
00003b 003A
13