fcomi

Compare Real and Set EFLAGS

FCOMI ST(0), ST(i)

Compares ST(0) with ST(i) and sets CPU EFLAGS directly.

Details

The Compare Real and Set EFLAGS instruction compares ST(0) with ST(i) and sets CPU EFLAGS directly.

Pseudocode Operation

// Compares ST(0) with ST(i) and sets CPU EFLAGS directly

Example

FCOMI st(0), st(1)

Encoding

Binary Layout
DB
+0
 
Format Legacy
Opcode DB F0+i
Extension x87 FPU (P6+)

Operands

  • dest
    x87 FPU top-of-stack register ST(0)
  • src
    x87 FPU stack register ST(i)