SPRU513Z August 2001 – October 2023 SM320F28335-EP
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
BBB .set 0
.fclist
.if AAA
ADD ACC, #1024
.else
ADD ACC, #1024*4
.endif
.fcnolist
.if AAA
ADD ACC, #1024
.else
ADD ACC, #1024*10
.endif
Listing file:
1 0001 AAA .set 1
2 0000 BBB .set 0
3 .fclist
4
5 .if AAA
6 000000 FF10 ADD ACC, #1024
000001 0400
7 .else
8 ADD ACC, #1024*4
9 .endif
10
11 .fcnolist
12
14 000002 FF10 ADD ACC, #1024
000003 0400