SLAU131Y October 2004 – June 2021
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. | |
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, M, T, and, W (turns off the limits of B, H, 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_listing_cross_reference option (see Section 5.4). |
This example shows how to limit the listings of the .byte, .char, .int, long, .word, and .string directives to one line each.
1 *****************************************************
2 ** Limit the listing of .byte, .char, .int, .long, **
3 ** .word, and .string directives to 1 line each. **
4 *****************************************************
5 .option B, W, T
6 0000 00BD .byte -'C', 0B0h, 5
7 0003 00BC .char -'D', 0C0h, 6
8 0006 000A .int 10, 35 + 'a', "abc"
9 0010 CCDD .long 0AABBCCDDh, 536 + 'A'
0012 AABB
0014 0259
0016 0000
10 0018 15AA .word 5546, 78h
11 001c 0045 .string "Extended Registers"
12
13 ****************************************************
14 ** Reset the listing options. **
15 ****************************************************
16 .option R
17 002e 00BD .byte -'C', 0B0h, 5
002f 00B0
0030 0005
18 0031 00BC .char -'D', 0C0h, 6
0032 00C0
0033 0006
19 0034 000A .int 10, 35 + 'a', "abc"
0036 0084
0038 0061
003a 0062
003c 0063
20 003e CCDD .long 0AABBCCDDh, 536 + 'A'
0040 AABB
0042 0259
0044 0000
21 0046 15AA .word 5546, 78h
0048 0078
22 004a 0045 .string "Extended Registers"
004b 0078
004c 0074
004d 0065
004e 006E
004f 0064
0050 0065
0051 0064
0052 0020
0053 0052
0054 0065
0055 0067
0056 0069
0057 0073
0058 0074
0059 0065
005a 0072
005b 0073