Reference Guide

88 Chapter 4
Assembler Directives and Pseudo-Operations
.FLOAT Pseudo-Operation
.FLOAT Pseudo-Operation
The .FLOAT pseudo-operation initializes a single-word of storage to a
floating-point value calculated from the parameters provided. If the
location counter is not aligned on a word boundary, it is forced to the next
multiple of four. If the statement is labeled, the label refers to the first
byte of the storage area.
Syntax
.FLOAT integer [ .fraction] [ E [ -] power]
.FLOAT .fraction [ E [ -] power]
Parameters
integer Specifies the whole number part of a decimal number.
fraction Specifies the fractional part of a decimal number.
power Specifies the power of ten to raise a decimal number. To
raise the decimal number to a negative power of ten,
place a minus sign (-) directly in front of the power
specified.
Example
Each of the following examples initializes one word of memory to
floating-point quantities: 0.00096 and 3400000.0, respectively.
factor1 .FLOAT 9.6E-4
factor2 .FLOAT 3.4E6