mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-05 21:13:27 +00:00
asm_x86_nz: fix "out dx, *" (#10769)
This commit is contained in:
parent
fa6c126461
commit
51a5394372
@ -2036,16 +2036,16 @@ static int opout(RAsm *a, ut8 *data, const Opcode *op) {
|
||||
st32 immediate = 0;
|
||||
if (op->operands[0].reg == X86R_DX) {
|
||||
if (op->operands[1].reg == X86R_AL && op->operands[1].type & OT_BYTE) {
|
||||
data[l++] = 0xec;
|
||||
data[l++] = 0xee;
|
||||
return l;
|
||||
}
|
||||
if (op->operands[1].reg == X86R_AX && op->operands[1].type & OT_WORD) {
|
||||
data[l++] = 0x66;
|
||||
data[l++] = 0xed;
|
||||
data[l++] = 0xef;
|
||||
return l;
|
||||
}
|
||||
if (op->operands[1].reg == X86R_EAX && op->operands[1].type & OT_DWORD) {
|
||||
data[l++] = 0xed;
|
||||
data[l++] = 0xef;
|
||||
return l;
|
||||
}
|
||||
} else if (op->operands[0].type & OT_CONSTANT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user