EasyManuals Logo

Renesas SuperH SH-4A User Manual

Renesas SuperH SH-4A
472 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #385 background imageLoading...
Page #385 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas SuperH SH-4A and is the answer not in the manual?

Renesas SuperH SH-4A Specifications

General IconGeneral
BrandRenesas
ModelSuperH SH-4A
CategoryComputer Hardware
LanguageEnglish

Related product manuals