English
Language : 

SH-2A Datasheet, PDF (311/501 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 6 Instruction Descriptions
Operation
void FLOAT(int n, float *FPUL)
{
union {
double d;
int l[2];
} tmp;
pc += 2;
clear_cause();
if(FPSCR.PR==0){
FR[n] = *FPUL; /* convert from integer to float */
tmp.d = *FPUL;
if(tmp.l[1] & 0x1fffffff) inexact();
} else {
DR[n>>1] = *FPUL; /* convert from integer to double */
}
}
Possible Exceptions:
Inexact: Not generated when FPSCR.PR = 1.
Rev. 3.00 Jul 08, 2005 page 297 of 484
REJ09B0051-0300