236
Section 3: Assembler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.float — Generate Floating-Point Data
Syntax
.float
operand [, operand] . . .
Description
operand
Specifies a floating-point symbol or floating-point constant. No
forward references are allowed.
The .float directive generates TI BCD floating-point data. The values of the
specified operands are placed in 10 bytes beginning at the current location in the
current section. A warning is issued if the alignment is odd. The data generated
is the same as the .double directive, allowing 16 digits in the mantissa. Since a
float in the compiler, com68, contains only 14 significant digits in the mantissa, it
is recommended to always use .double to avoid confusion.
Examples
.float 3.141592653589793
; 4000 3141 5926 5358 9793
.float -10,0.2
; C001 1000 0000 0000 0000
; 3FFF 2000 0000 0000 0000
Each of the above examples is shown with the sequence of words (in
hexadecimal) that it generates.
FOPT — Set Assembler Floating-Point Options
Not supported by Texas Instruments. However, FOPT is still recognized as a
reserved name by asm68k.
FORMAT — Format Assembly Listing
Syntax
FORMAT
Description
The FORMAT directive is ignored. It is recognized only for Motorola compatibility.