def - Define floating point constants

def - Define floating point constants

Calling Format

def     dest, value0, value1, value2, value3

Operands

Name Registers
dest Floating-point constant register
value0-3 Floating-point value

Overview

Sets the value of a floating-point constant register.

You can set the value in decimal notation (using a decimal point) or integer notation (base 10 or base 16).
When you specify values in hexadecimal notation, the bitmap specifies a 24-bit floating-point value. (This value consists of 1 sign bit, 7 exponent bits, and 16 mantissa bits.)
If a value larger than 24 bits is specified, the lower 24 bits are used and the rest are discarded.

Code Example

def     c0, 1,        1.5,      -0.5,     0.25
def     c1, 0x3f0000, 0x3f8000, 0xbe0000, 0x3d0000 // This sets the same values as above.

Revision History

2011/12/20
Initial version.

CONFIDENTIAL