Details Table

┌──────────┬────────────────────┬─┬─┬─┬─┬─┬─┬──────────────────────────────────┐
│Encoding  │Instruction         │0│1│2│3│4│5│Description                       │
├──────────┼────────────────────┼─┼─┼─┼─┼─┼─┼──────────────────────────────────┤
│A6        │CMPS m8,m8          │X│X│X│X│X│X│Compare bytes ES:[(E)DI] (second  │
│          │                    │ │ │ │ │ │ │operand) with [(E)SI] (first      │
│          │                    │ │ │ │ │ │ │operand)                          │
├──────────┼────────────────────┼─┼─┼─┼─┼─┼─┼──────────────────────────────────┤
│A7        │CMPS m16,m16        │X│X│X│X│X│X│Compare words ES:[(E)DI] (second  │
│          │                    │ │ │ │ │ │ │operand) with [(E)SI] (first      │
│          │                    │ │ │ │ │ │ │operand)                          │
├──────────┼────────────────────┼─┼─┼─┼─┼─┼─┼──────────────────────────────────┤
│A7        │CMPS m32,m32        │ │ │ │X│X│X│Compare dwords ES:[(E)DI] (second │
│          │                    │ │ │ │ │ │ │operand) with [(E)SI] (first      │
│          │                    │ │ │ │ │ │ │operand)                          │
├──────────┼────────────────────┼─┼─┼─┼─┼─┼─┼──────────────────────────────────┤
│A6        │CMPSB               │X│X│X│X│X│X│Compare bytes ES:[(E)DI] with     │
│          │                    │ │ │ │ │ │ │DS:[(E)SI]                        │
├──────────┼────────────────────┼─┼─┼─┼─┼─┼─┼──────────────────────────────────┤
│A7        │CMPSW               │X│X│X│X│X│X│Compare words ES:[(E)DI] with     │
│          │                    │ │ │ │ │ │ │DS:[(E)SI]                        │
├──────────┼────────────────────┼─┼─┼─┼─┼─┼─┼──────────────────────────────────┤
│A7        │CMPSD               │ │ │ │X│X│X│Compare dwords ES:[(E)DI] with    │
│          │                    │ │ │ │ │ │ │DS:[(E)SI]                        │
└──────────┴────────────────────┴─┴─┴─┴─┴─┴─┴──────────────────────────────────┘


[Back: CMPS/CMPSB/CMPSW/CMPSD-Compare String Operands]
[Next: Description]