Details Table
┌──────────┬────────────────────┬─┬─┬─┬─┬─┬─┬──────────────────────────────────┐
│Encoding │Instruction │0│1│2│3│4│5│Description │
├──────────┼────────────────────┼─┼─┼─┼─┼─┼─┼──────────────────────────────────┤
│0F B0 /r │CMPXCHG r/m8,r8 │ │ │ │ │X│X│Compare AL with r/m byte. If │
│ │ │ │ │ │ │ │ │equal, set ZF and load byte reg │
│ │ │ │ │ │ │ │ │into r/m byte. Else, clear ZF and│
│ │ │ │ │ │ │ │ │load r/m byte into AL │
├──────────┼────────────────────┼─┼─┼─┼─┼─┼─┼──────────────────────────────────┤
│0F B1 /r │CMPXCHG r/m16,r16 │ │ │ │ │X│X│Compare AX with r/m word. If │
│ │ │ │ │ │ │ │ │equal, set ZF and load word reg │
│ │ │ │ │ │ │ │ │into r/m word. Else, clear ZF and│
│ │ │ │ │ │ │ │ │load r/m word into AX │
├──────────┼────────────────────┼─┼─┼─┼─┼─┼─┼──────────────────────────────────┤
│0F B1 /r │CMPXCHG r/m32,r32 │ │ │ │ │X│X│Compare EAX with r/m dword. If │
│ │ │ │ │ │ │ │ │equal, set ZF and load dword reg │
│ │ │ │ │ │ │ │ │into r/m dword. Else, clear ZF │
│ │ │ │ │ │ │ │ │and load r/m dword into EAX. │
└──────────┴────────────────────┴─┴─┴─┴─┴─┴─┴──────────────────────────────────┘
[Back: CMPXCHG-Compare and Exchange]
[Next: Description]