CMP

MEM0:r:b REG0=GPR8_R():r REG0=GPR8_B():r REG1=GPR8_R():r

x86_64 X86_LEGACY BINARY I86 source: xed

XED_CMP_GPR8_GPR8_38

Encoding

encoding_kindX86_LEGACY
opcode_bytes38 38
opcode_mapONEBYTE
mandatory_prefix-
has_modrmTrue
attributesBYTEOP
cpl3
raw_encoding0x38 MOD[mm] MOD!=3 REG[rrr] RM[nnn] MODRM() 0x38 MOD[0b11] MOD=3 REG[rrr] RM[nnn]

Operands (4)

# Role Kind Class / Reg Width Access Visibility Encoded in
0 MEM0 MEM b 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.