EasyManua.ls Logo

Renesas SuperH SH-4A - FABS (Floating-Point Absolute Value): Floating-Point Instruction

Renesas SuperH SH-4A
472 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.50, 10/04, page 365 of 448
10.3.1 FABS (Floating-point Absolute Value): Floating-Point Instruction
PR Format Operation Instruction Code Cycle T Bit
0 FABS FRn FRn & H'7FFFFFFF FRn 1111nnnn01011101 1
1 FABS DRn DRn & H'7FFFFFFFFFFFFFFF
DRn
1111nnn001011101 1
Description: This instruction clears the most significant bit of the contents of floating-point
register FRn/DRn to 0, and stores the result in FRn/DRn.
The cause and flag fields in FPSCR are not updated.
Notes: None
Operation:
void FABS (int n){
FR[n] = FR[n] & 0x7fffffff;
pc += 2;
}
/* Same operation is performed regardless of precision. */
Possible Exceptions: None

Table of Contents

Related product manuals