03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MATH COPROCESSING<br />

14.3.1.3 Comparison Instructions<br />

Each comparison instruction (see Table 14-3) analyzes the stack top element, often in relationship<br />

to another operand. Then it reports the result in the Status Word condition code. The basic operations<br />

are compare, test (compare with zero) and examine (report tag, sign and normalization).<br />

Table 14-3. 80C187 Comparison Instructions<br />

FCOM<br />

FCOMP<br />

FCOMPP<br />

FICOM<br />

FICOMP<br />

FTST<br />

FXAM<br />

FUCOM<br />

FUCOMP<br />

FUCOMPP<br />

Compare real<br />

Compare real and pop<br />

Compare real and pop twice<br />

Integer compare<br />

Integer compare and pop<br />

Test<br />

Examine<br />

Unordered compare<br />

Unordered compare and pop<br />

Unordered compare and pop twice<br />

14.3.1.4 Transcendental Instructions<br />

Transcendental instructions (see Table 14-4) perform the core calculations for common trigonometric,<br />

hyperbolic, inverse hyperbolic, logarithmic and exponential functions. Use prologue code<br />

to reduce arguments to a range accepted by the instruction. Use epilogue code to adjust the result<br />

to the range of the original arguments. The transcendentals operate on the top one or two stack<br />

elements and return their results to the stack.<br />

Table 14-4. 80C187 Transcendental Instructions<br />

FPTAN Partial tangent<br />

FPATAN Partial arctangent<br />

F2XM1 2 X – 1<br />

FYL2X Y log 2 X<br />

FYL2XP1 Y log 2 (X+1)<br />

FCOS Cosine<br />

FSIN Sine<br />

FSINCOS Sine and Cosine<br />

14-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!