SPRU513Z August 2001 – October 2023 SM320F28335-EP
Control Listing of Substitution Symbols
.sslist
.ssnolist
Two directives allow you to control substitution symbol expansion in the listing file:
The .sslist directive allows substitution symbol expansion in the listing file. The expanded line appears below the actual source line.
The .ssnolist directive suppresses substitution symbol expansion in the listing file.
By default, all substitution symbol expansion in the listing file is suppressed; the assembler acts as if the .ssnolist directive had been used.
Lines with the pound (#) character denote expanded substitution symbols.
This example shows code that, by default, suppresses the listing of substitution symbol expansion, and it shows the .sslist directive assembled, instructing the assembler to list substitution symbol code expansion.
1 00000000 ADDRX .usect ".ebss", 1
2 00000001 ADDRY .usect ".ebss", 1
3 00000002 ADDRA .usect ".ebss", 1
4 00000003 ADDRB .usect ".ebss", 1
5
6 ADD2 .macro parm1, parm2
7 MOV ACC, @parm1
8 ADD ACC, @parm2
9 MOV @parm2, ACC
10 .endm
11
12 00000000 ADD2 ADDRX, ADDRY
1 00000000 8500- MOV ACC, @ADDRX
1 00000001 8101- ADD ACC, @ADDRY
1 00000002 9601- MOV @ADDRY, ACC
13
14 .sslist
15 00000003 ADD2 ADDRA, ADDRB
1 00000003 8502- MOV ACC, @parm1
# MOV ACC, @ADDRA
1 00000004 8103- ADD ACC, @parm2
# ADD ACC, @ADDRB
1 00000005 9603- MOV @parm2, AC