CMP

MEM0:r:v REG0=GPRv_R():r REG0=GPRv_B():r REG1=GPRv_R():r

x86_64 X86_LEGACY BINARY I86 source: xed

XED_CMP_GPRv_GPRv_39

Encoding

encoding_kindX86_LEGACY
opcode_bytes39 39
opcode_mapONEBYTE
mandatory_prefix-
has_modrmTrue
cpl3
raw_encoding0x39 MOD[mm] MOD!=3 REG[rrr] RM[nnn] MODRM() 0x39 MOD[0b11] MOD=3 REG[rrr] RM[nnn]

Operands (4)

# Role Kind Class / Reg Width Access Visibility Encoded in
0 MEM0 MEM v R EXPLICIT MODRM_RM
1 REG0 REG R EXPLICIT MODRM_REG
2 REG1 REG R EXPLICIT MODRM_REG
3 REG2 REG R EXPLICIT MODRM_REG

Flag effects (6)

CF = WRITE PF = WRITE AF = WRITE ZF = WRITE SF = WRITE OF = WRITE

Micro-ops sequence (0)

No micro-ops authored for this encoding. Emulator semantics not yet defined — decoder still works.