beautypg.com

Cmpi, Cmpi syntax, Description – Intel Extensible Firmware Interface User Manual

Page 796: Operation

background image

Extensible Firmware Interface Specification

19-22

12/01/02

Version 1.10

CMPI

SYNTAX:

CMPI[32|64]{w|d}[eq|lte|gte|ulte|ugte] {@}R

1

{Index16}, Immed16|Immed32

DESCRIPTION:

Compares two operands, one of which is an immediate value, for =, <=, >=, unsigned <=, or
unsigned >=, and sets or clears the condition flag bit in the Flags register accordingly. Comparisons
can be performed on a 32-bit (CMPI32) or 64-bit (CMPI64) basis. The size of the immediate data
can be either 16 bits (CMPIw) or 32 bits (CMPId).

OPERATION:

CMPIeq: Flags.C <= (Operand 1 == Operand 2)

CMPIlte: Flags.C <= (Operand 1 <= Operand 2)

CMPIgte: Flags.C <= (Operand 1 >= Operand 2)

CMPIulte: Flags.C <= (Operand 1 <= Operand 2)

CMPIugte: Flags.C <= (Operand 1>= Operand 2)