.float/.xfloat
Initialize Floating-Point Value
4-50
Syntax
.float
value
1
[,
... , value
n
]
.xfloat
value
1
[, ... , value
n
]
Description
The .float and .xfloat directives place the floating-point representation of one
or more floating-point constants into the current data section. The
value must
be a floating-point constant or a symbol that has been equated to a floating-
point constant. Each constant is converted to a floating-point value in IEEE
single-precision 32-bit format. Floating-point constants are aligned on the
long-word boundaries unless the .xfloat directive is used. The .xfloat directive
performs the same function as the .float directive but does not align the result
on the long word boundary.
The 32-bit value consists of three fields:
Field
Meaning
s
A 1-bit sign field
e
An 8-bit biased exponent
f
A 23-bit fraction
The value is stored most significant word first, least significant word second,
in the following format:
s
e
f
31 30
23 22
0
When you use .float in a .struct/.endstruct sequence, .float defines a member’s
size; it does not initialize memory. For more information about .struct/
.endstruct, see Section 4.9,
Assembly-Time Symbol Directives, on page 4-21.
Example
This example shows the .float directive.
1 000000 E904 .float –1.0e25
000001 5951
2 000002 4040 .float 3
000003 0000
3 000004 42F6 .float 123
000005 0000
Содержание 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: ......