EasyManua.ls Logo

Intel 8253 - 1 3 Comparison Instructions; 1 4 Transcendental Instructions; 1 5 Load Constant Instructions; Figure 1-1 Intel387 SX Math

Intel 8253
773 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Intel387
TM
SX MATH COPROCESSOR
Other Operations
FSQRT Square Root
FSCALE Scale
FPREM Partial Remainder
FPREM1 IEEE standard partial remainder
FRNDINT Round to Integer
FXTRACT Extract Exponent and Significand
FABS Absolute Value
FCHS Change sign
3.1.3 COMPARISON INSTRUCTION
Instructions of this class allow comparison of num-
bers of all supported real and integer data types.
Each of these instructions analyzes the top stack
element often in relationship to another operand and
reports the result as a condition code in the status
word.
FCOM Compare Real
FCOMP Compare Real and pop
FCOMPP Compare Real and pop twice
FUCOM Unordered compare Real
FUCOMP Unordered compare Real and pop
FUCOMPP Unordered compare Real and pop
twice
FICOM Compare Integer
FICOMP Compare Integer and pop
FTST Test
FXAM Examine
3.1.4 TRANSCENDENTAL INSTRUCTIONS
This group of the Intel387 operations includes trigo-
nometric, inverse trigonometric, logarithmic and ex-
ponential functions. The transcendental operate on
the top one or two stack elements, and they return
their results to the stack. The trigonometric opera-
tions assume their arguments are expressed in radi-
ans. The logarithmic and exponential operations
work in base 2.
FSIN Sine
FCOS Cosine
FSINCOS Sine and cosine
FPTAN Tangent
FPATAN Arctangent of ST(1)/ST
F2XM1 2
x
–1
FYL2X Y * log
2
X
FYL2XP1 Y * log
2
(X
a
1)
3.1.5 LOAD CONSTANT INSTRUCTIONS
Each of these instructions loads (pushes) a com-
monly used constant onto the stack. The constants
have extended real values nearest to the infinitely
precise numbers. The only error that can be gener-
ated is an Invalid Exception if a stack overflow oc-
curs.
FLDZ Load
a
0.0
FLD1 Load
a
1.0
FLDPI Load q
FLDL2T Load log
2
10
FLDL2E Load log
2
e
FLDLG2 Load log
10
2
FLDLN2 Load log
e
2
10
10

Table of Contents