Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
FSIN/FCOS/FSINCOS Instructions
 Detail                                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Title:    Sine/Cosine
            80387/486 Only
 
  Syntax:   FSIN
            FCOS
            FSINCOS
 
  See also: .387, .486, FPREM, FPREM1, FPTAN
 
  Description:
 
     FSIN replaces a value in radians in ST with its sine. FCOS
     replaces a value in radians in ST with its cosine. FSINCOS
     calculates the sine and cosine of a radian value in ST. The sine
     replaces the value in ST, and then the cosine is pushed onto the
     stack.
 
     If |ST| < 2^63, the C2 bit of the status word is cleared and the
     sine and/or cosine is calculated. Otherwise, C2 is set and no
     calculation is performed. ST can be reduced to the required range
     with FPREM or FPREM1.
                                    -♦-