Initialize Long Word
.long/.ulong/.xlong
4-63
Assembler Directives
Syntax
.long
value
1
[, ... ,
value
n
]
.ulong
value
1
[, ... ,
value
n
]
.xlong
value
1
[, ... ,
value
n
]
Description
The .long, .ulong, and .xlong directives place one or more 32-bit values into
consecutive words in the current section. The most significant word is stored
first. The .long and .ulong directives align the result on the long word boundary,
while the .xlong directive does not. A value can be:
-
An expression that the assembler evaluates and treats as an 32-bit signed
or unsigned number
-
A character string enclosed in double quotes. Each character in a string
represents a separate value.
The
value operand can be either an absolute or relocatable expression. If an
expression is relocatable, the assembler generates a relocation entry that re-
fers to the appropriate symbol; the linker can then correctly patch ( relocate)
the reference. This allows you to initialize memory with pointers to variables
or with labels.
You can use up to 100
values, but they must fit on a single source statement
line. If you use a label, it points to the first word that is initialized.
When you use the directives in a .struct /.endstruct sequence, they define a
member’s size; they do not initialize memory. For more information about
.struct / .endstruct, see Section 4.9,
Assembly-Time Symbol Directives, on
page 4-21.
Содержание TMS320C54x
Страница 38: ......
Страница 39: ......
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 44: ......
Страница 45: ......
Страница 46: ......
Страница 47: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 56: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 60: ......
Страница 61: ......
Страница 62: ......
Страница 276: ......
Страница 277: ......
Страница 278: ......
Страница 279: ......
Страница 280: ......
Страница 281: ......
Страница 282: ......
Страница 283: ......
Страница 284: ......
Страница 285: ......
Страница 286: ......
Страница 287: ......
Страница 288: ......
Страница 289: ......
Страница 290: ......
Страница 291: ......
Страница 292: ......
Страница 293: ......
Страница 294: ......
Страница 295: ......
Страница 296: ......
Страница 297: ......
Страница 298: ......
Страница 299: ......
Страница 300: ......
Страница 301: ......
Страница 302: ......