SLAU131Y October 2004 – June 2021
Control Listing of False Conditional Blocks
.fclist
.fcnolist
Two directives enable you to control the listing of false conditional blocks:
The .fclist directive allows the listing of false conditional blocks (conditional blocks that do not produce code).
The .fcnolist directive suppresses the listing of false conditional blocks until a .fclist directive is encountered. With .fcnolist, only code in conditional blocks that are actually assembled appears in the listing. The .if, .elseif, .else, and .endif directives do not appear.
By default, all conditional blocks are listed; the assembler acts as if the .fclist directive had been used.
This example shows the assembly language and listing files for code with and without the conditional blocks listed.
Source file:
AAA .set 1
BB .set 0
.fclist
.if AAA
ADD #1024,R11
.else
ADD #1024*10,R11
.endif
.fcnolist
.if AAA
ADD #1024,R11
.else
ADD #1024*10,R11
.endif
Listing file:
1 0001 AAA .set 1
2 0000 BB .set 0
3 .fclist
4 .if AAA
5 0000 503B ADD #1024,R11
0002 0400
6 .else
7 ADD #1024*10,R11
8 .endif
9 .fcnolist
11 0004 503B ADD #1024,R11
0006 0400