Texas Instruments TMS320C54x User Manual page 152

Digital signal processors
Hide thumbs Also See for TMS320C54x:
Table of Contents

Advertisement

Syntax
Description
Example
.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.
This example defines a macro named STR_3 . 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 listed,
because a .mlist directive was assembled.
1
2
3
4
5 000000
1
000000 003A
000001 0070
000002 0031
000003 003A
000004 003A
000005 0070
000006 0032
000007 003A
000008 003A
000009 0070
00000a 0033
00000b 003A
6
7 00000c
8
9 000018
1
000018 003A
000019 0070
00001a 0031
00001b 003A
00001c 003A
00001d 0070
00001e 0032
00001f 003A
000020 003A
000021 0070
000022 0033
000023 003A
Start/Stop Expansion Listing
STR_3
.macro
P1, P2, P3
.string ":p1:", ":p2:", ":p3:"
.endm
STR_3 "as", "I", "am"
.string ":p1:", ":p2:", ":p3:"
.mnolist
STR_3 "as", "I", "am"
.mlist
STR_3 "as", "I", "am"
.string ":p1:", ":p2:", ":p3:"
Assembler Directives
.mlist/.mnolist
4-69

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C54x and is the answer not in the manual?

Table of Contents