Professional Documents
Culture Documents
Command: FPREM1
Purpose: Find the partial remainder in the IEEE standard
Command: FABS
Purpose: Find absolute value
Command: FCHS
Purpose: Change a sign
Command: FRNDINT
Purpose: Round to the integer
Command: FSCALE
Purpose: Scale on two degrees
Lecture 9. Floating Point Numbers - II
Command: FXTRACT
Purpose: Extract an exhibitor and a mantissa
Command: FSQRT
Purpose: Extract a square root
Command: FTST
Purpose: Check, whether ST(0) contains zero
Command: FXAM
Purpose: Analyze content of ST(0)
Table. Results of FXAM command
Lecture 9. Floating Point Numbers - II
Command: FCOS
Purpose: Cosine
Command: FSINCOS
Purpose: Sine and cosine
Command: FPTAN
Purpose: Tangent
Command: FPATAN
Purpose: Arctangent
Lecture 9. Floating Point Numbers - II
Table. Results of FPATAN command
Command: F2XMI
Purpose: Calculating 2^x - 1
Command: FYL2X
Purpose: Calculating y*log2(x)
Command: FYL2XP1
Purpose: Calculating y*log2(x + 1)
Lecture 9. Floating Point Numbers - II
Constants of FPU
Command: FLD1
Purpose: Push 1.0 onto the stack
Command: FLDZ
Purpose: Push +0.0 onto the stack
Command: FLDPI
Purpose: Push PI number onto the stack
Command: FLDL2E
Purpose: Push log2(e) onto the stack
Command: FLDL2T
Purpose: Push log2(10) onto the stack
Command: FLDLN2
Purpose: Push ln(2) onto the stack
Command: FLDLG2
Purpose: Push lg(2) onto the stack
Lecture 9. Floating Point Numbers - II
Control command of FPU
Command: FINCSTP
Purpose: Increase the top index of the stack
Command: FDECSTP
Purpose: Reduce the top index of the stack
Command: FINIT
Purpose: Initialize FPU
Command: FNINIT
Purpose: Initialize FPU without expectation
Command: FCLEX
Purpose: Nullify exception flags
Lecture 9. Floating Point Numbers - II
Command: FNCLEX
Purpose: Nullify exception flags without expectation
Command: WAIT
FWAIT
Purpose: Expectation of FPU readiness
Command: FNOP
Purpose: Lack of operation