FICOM           Integer compare                      Exceptions: I D
FICOMP Integer compare and pop C3 C2 C1 C0: * * * *

FICOM source
FICOMP source

; FICOM ; FICOMP
Logic CMP ST, source CMP ST, source
set condition codes pop ST
set condition codes

C3 C1 C0
0 0 0 ST > source
0 0 1 ST < source
1 0 0 ST = source
1 1 1 ST not comparable to source

FICOM/FICOMP compare the stack top to a word or short-integer memory
operand and leave the result encoded in the status word as shown
above. FICOMP also pops the stack.


Opcode Format
DE /2 FICOM m16
DA /2 FICOM m32
DE /3 FICOMP m16
DA /3 FICOMP m32


Timing
Variations/
operand 8087 287 387 486 Pentium
ficom m16 (72-86)+EA 72-86 71-75 16-20 8/4 NP
ficom m32 (78-91)+EA 78-91 56-63 15-17 8/4 NP
ficomp m16 (74-88)+EA 74-88 71-75 16-20 8/4 NP
ficomp m32 (80-93)+EA 80-93 56-63 15-17 8/4 NP