SUB

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

x86_64 X86_LEGACY BINARY I86 source: xed

XED_SUB_GPRv_GPRv_2B

Encoding

encoding_kindX86_LEGACY
opcode_bytes2B 2B
opcode_mapONEBYTE
mandatory_prefix-
has_modrmTrue
cpl3
raw_encoding0x2B MOD[0b11] MOD=3 REG[rrr] RM[nnn] 0x2B MOD[mm] MOD!=3 REG[rrr] RM[nnn] MODRM()

Operands (4)

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

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.