SPRUI03E June 2015 – January 2023
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 00000000 STR_3 "as", "I", "am"
1 00000000 0000003A .string ":p1:", ":p2:", ":p3:"
00000001 00000070
00000002 00000031
00000003 0000003A
00000004 0000003A
00000005 00000070
00000006 00000032
00000007 0000003A
00000008 0000003A
00000009 00000070
0000000a 00000033
0000000b 0000003A
6 .mnolist
7 0000000c STR_3 "as", "I", "am"
8 .mlist
9 00000018 STR_3 "as", "I", "am"
1 00000018 0000003A .string ":p1:", ":p2:", ":p3:"
00000019 00000070
0000001a 00000031
0000001b 0000003A
0000001c 0000003A
0000001d 00000070
0000001e 00000032
0000001f 0000003A
00000020 0000003A
00000021 00000070
00000022 00000033
00000023 0000003A