Hitachi SH7750 Programming Manual page 278

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

Advertisement

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. 2.0, 03/99, page 264 of 396

Advertisement

Table of Contents
loading

Table of Contents