Details Table

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


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