repe cmps

Repeat Compare String Equal

REPE CMPS m, m

Compares [ESI] and [EDI] until mismatch or ECX=0.

Details

The Repeat Compare String Equal instruction compares [ESI] and [EDI] until mismatch or ECX=0.

Pseudocode Operation

// Compares [ESI] and [EDI] until mismatch or ECX=0

Example

REPE CMPS m, [rbp-8]

Encoding

Binary Layout
F3
+0
 
Format Legacy
Opcode F3 A6/A7
Extension Base

Operands

  • dest
    Implicit memory for CMPS string compare (DS:[SI] vs ES:[DI])
  • src
    Memory operand