FSINCOS
Usage: FSINCOS src Modifies flags: See below.
Computes both the sine and the cosine of the source operand in register ST(0), stores the sine in ST(0), and pushes the cosine onto the top of the FPU register stack.
Sine and Cosine
FSIN ; D9 FE [386,FPU]
FSINCOS ; D9 FB [386,FPU]
FSIN calculates the sine of ST0 (in radians) and stores the result in ST0. FSINCOS does the same, but then pushes the cosine of the same value on the register stack, so that the sine ends up in ST1 and the cosine in ST0. FSINCOS is faster than executing FSIN and FCOS in succession.
The absolute value of ST0 must be less than 2**63.
FPU Flags Affected C1 Set to 0 if stack underflow occurred; set to 1 of stack overflow occurs. Set if result was rounded up; cleared otherwise. C2 Set to 1 if outside range (-2 63 <source operand <+2 63 ); otherwise, set to 0. C0, C3 Undefined.
Example:
fsincos Label