Correctly assemble displacement only addresses (#8705)

FIX #8701
This commit is contained in:
Sven Steinbauer 2017-10-18 10:12:59 +01:00 committed by radare
parent e12051c40d
commit 68bd7fd0aa

View File

@ -1562,7 +1562,9 @@ static int opmov(RAsm *a, ut8 *data, const Opcode *op) {
if (a->bits == 64 && !(op->operands[1].regs[0] == X86R_RBP)) {
if (op->operands[0].type & OT_QWORD) {
if (!(op->operands[1].type & OT_QWORD)) {
data[l++] = 0x67;
if (op->operands[1].regs[0] != -1) {
data[l++] = 0x67;
}
data[l++] = 0x48;
} else {}
} else if (!(op->operands[1].type & OT_QWORD)) {