FSIN Sine Exceptions: P U D I S FSINCOS Sine and cosine C3 C2 C1 C0: ? * * ? FPU: 387+ FSIN FSINCOS
; FSIN ; FSINCOS Logic ST ← sin(ST) temp ← ST ST ← sin(temp) push (cos(temp))
FSIN replaces the contents of ST with sin(ST).
FSINCOS computes both sin(ST) and cos(ST). It replaces ST with the sine and then pushes the cosine onto the FPU stack (leaving the sine in ST(1) and the cosine in ST).
ST, expressed in radians, must be an absolute number that is less than 2**63. If the operand is outside the acceptable range, FSIN/ FSINCOS set C2 to 1 and no calculation is performed.
Note The 80486 checks for interrupts while executing these instructions. It will abort FSIN/FSINCOS to service an interrupt.