cmps

Compare String

CMPSB

Compares byte/word at [ESI] with [EDI].

Details

The Compare String instruction compares byte/word at [ESI] with [EDI].

Pseudocode Operation

Flags <- Memory[RSI] - Memory[RDI]
RSI += size; RDI += size

Example

CMPSB

Encoding

Binary Layout
A6
+0
 
Format Legacy
Opcode A6
Extension Base

Operands