SPRUI03E June 2015 – January 2023
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). | |
H | limits the listing of .half and .short directives to one line. | |
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, H, L, M, T, and W (turns off the limits of B, H, 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.14). |
This example limits listings of .byte, .char, .int, long, .word, and .string to one line each.
1 .option B, W, T
2 00000000 000000BD .byte -'C', 0B0h, 5
3 00000003 000000BC .char -'D', 0C0h, 6
4 00000008 0000000A .int 10, 35 + 'a', "abc"
5 0000001c AABBCCDD .long 0AABBCCDDh, 536 + 'A'
6 00000024 000015AA .word 5546, 78h
7 0000002c 00000052 .string "Registers"
8 *************************************************
9 ** Reset the listing options. **
10 *************************************************
11 .option R
12 00000035 000000BD .byte -'C', 0B0h, 5
00000036 000000B0
00000037 00000005
13 00000038 000000BC .char -'D', 0C0h, 6
00000039 000000C0
0000003a 00000006
14 0000003c 0000000A .int 10, 35 + 'a', "abc"
00000040 00000084
00000044 00000061
00000048 00000062
0000004c 00000063
15 00000050 AABBCCDD .long 0AABBCCDDh, 536 + 'A'
00000054 00000259
16 00000058 000015AA .word 5546, 78h
0000005c 00000078
17 00000060 00000052 .string "Registers"
00000061 00000065
00000062 00000067
00000063 00000069
00000064 00000073
00000065 00000074
00000066 00000065
00000067 00000072
00000068 00000073