Float - Hitachi SH7750 Programming Manual

High-performance risc engine superh (sh) 32-bit risc mcu/mpu series
Hide thumbs Also See for SH7750:
Table of Contents

Advertisement

10.35

FLOAT

Integer to Floating-Point
Conversion
PR
Format
0
FLOAT FPUL,FRn
1
FLOAT FPUL,DRn
Description
When FPSCR.PR = 0: Taking the contents of FPUL as a 32-bit integer, converts this integer to a
single-precision floating-point number and stores the result in FRn.
When FPSCR.PR = 1: Taking the contents of FPUL as a 32-bit integer, converts this integer to a
double-precision floating-point number and stores the result in DRn.
When FPSCR.enable.I = 1, an FPU exception trap is generated regardless of whether or not an
exception has occurred. When an exception occurs, correct exception information is reflected in
FPSCR.cause and FPSCR.flag, and FRn or DRn is not updated. Appropriate processing should
therefore be performed by software.
Floating-point
convert from integer
Summary of Operation Instruction Code
(float)FPUL → FRn
(double)FPUL → DRn
Floating-Point Instruction
1111nnnn00101101 1
1111nnn000101101 2
Rev. 2.0, 03/99, page 263 of 396
Execution
States
T Bit

Advertisement

Table of Contents
loading

Table of Contents