EasyManua.ls Logo

Texas Instruments TI-89 - Page 196

Texas Instruments TI-89
334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
184
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 (Single-Precision)
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,.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.
.fpdata — Generate Floating-Point Data
Not supported by Texas Instruments; however,
.fpdata
is still recognized as a
reserved name by
asm68
.

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals