x86: fix movw instruction in #789
This commit is contained in:
parent
c4137655e4
commit
9ed7f53376
|
@ -728,7 +728,7 @@ static void printMemReference(MCInst *MI, unsigned Op, SStream *O)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SStream_concat0(O, "0");
|
//SStream_concat0(O, "0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14168,12 +14168,15 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
|
||||||
uint64_t Bits2 = OpInfo2[opcode];
|
uint64_t Bits2 = OpInfo2[opcode];
|
||||||
uint64_t Bits = (Bits2 << 32) | Bits1;
|
uint64_t Bits = (Bits2 << 32) | Bits1;
|
||||||
// assert(Bits != 0 && "Cannot print this instruction.");
|
// assert(Bits != 0 && "Cannot print this instruction.");
|
||||||
if (!X86_lockrep(MI, O))
|
if (!X86_lockrep(MI, O)) {
|
||||||
#ifndef CAPSTONE_DIET
|
#ifndef CAPSTONE_DIET
|
||||||
|
// HACK TODO
|
||||||
|
if (opcode == X86_MOV32sm) {
|
||||||
|
SStream_concat0(O, "movw\t");
|
||||||
|
} else
|
||||||
SStream_concat0(O, AsmStrs+(Bits & 16383)-1);
|
SStream_concat0(O, AsmStrs+(Bits & 16383)-1);
|
||||||
#else
|
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Fragment 0 encoded into 7 bits for 79 unique commands.
|
// Fragment 0 encoded into 7 bits for 79 unique commands.
|
||||||
|
|
|
@ -24,7 +24,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
${RM} -rf *.o cstool
|
${RM} -rf *.o $(TARGET)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
ifeq ($(V),0)
|
ifeq ($(V),0)
|
||||||
|
|
Loading…
Reference in New Issue