SPRU513Y August 2001 – June 2022 SM320F28335-EP
Select Listing Options
.optionoption1[, option2,. . .]
The .option directive selects options for the assembler output listing. The options must be separated by commas; each option selects a listing feature. Options are not case sensitive. These are valid options:
A | turns on listing of all directives, data, subsequent expansions, macros, and blocks. | |
B | limits the listing of .byte and .char directives to one line. | |
D | turns off the listing of certain directives (same effect as .drnolist). | |
L | limits the listing of .long directives to one line. | |
M | turns off macro expansions in the listing. | |
N | turns off listing (performs .nolist). | |
O | turns on listing (performs .list). | |
R | resets any B, L, M, T, and W (turns off the limits of B, L, M, T, and W). | |
T | limits the listing of .string directives to one line. | |
W | limits the listing of .word and .int directives to one line. | |
X | produces a cross-reference symbol listing. You can also obtain this listing by invoking the assembler with the --asm_cross_reference_listing option (see Section 5.15). |
This example limits listings of .byte, long, .word, and .string to one line each.
1 *****************************************************
2 ** Limit listing of specified directive to 1 line. **
3 *****************************************************
4 .option B, W, L, T
5 000000 00BD .byte -'C', 0B0h, 5
6 000004 CCDD .long 0AABBCCDDh, 536 + 'A'
7 000008 15AA .word 5546, 78h
8 00000a 0045 .string "Extended Registers"
9 *****************************************************
10 ** Reset the listing options. **
11 *****************************************************
12 .option R
13 00001c 00BD .byte -'C', 0B0h, 5
00001d 00B0
00001e 0005
14 000020 CCDD .long 0AABBCCDDh, 536 + 'A'
000021 AABB
000022 0259
000023 0000
15 000024 15AA .word 5546, 78h
000025 0078
16 000026 0045 .string "Extended Registers"
000027 0078
000028 0074
000029 0065
00002a 006E
00002b 0064
00002c 0065
00002d 0064
00002e 0020
00002f 0052
000030 0065
000031 0067
000032 0069
000033 0073
000034 0074
000035 0065
000036 0072
000037 0073