x86: fix movw instruction in #789
diff --git a/arch/X86/X86ATTInstPrinter.c b/arch/X86/X86ATTInstPrinter.c
index 86da083..5fd8d1c 100644
--- a/arch/X86/X86ATTInstPrinter.c
+++ b/arch/X86/X86ATTInstPrinter.c
@@ -728,7 +728,7 @@
}
}
} else {
- SStream_concat0(O, "0");
+ //SStream_concat0(O, "0");
}
}
diff --git a/arch/X86/X86GenAsmWriter.inc b/arch/X86/X86GenAsmWriter.inc
index 6e6ae6f..536d22c 100644
--- a/arch/X86/X86GenAsmWriter.inc
+++ b/arch/X86/X86GenAsmWriter.inc
@@ -14168,12 +14168,15 @@
uint64_t Bits2 = OpInfo2[opcode];
uint64_t Bits = (Bits2 << 32) | Bits1;
// assert(Bits != 0 && "Cannot print this instruction.");
- if (!X86_lockrep(MI, O))
+ if (!X86_lockrep(MI, O)) {
#ifndef CAPSTONE_DIET
- SStream_concat0(O, AsmStrs+(Bits & 16383)-1);
-#else
- ;
+ // HACK TODO
+ if (opcode == X86_MOV32sm) {
+ SStream_concat0(O, "movw\t");
+ } else
+ SStream_concat0(O, AsmStrs+(Bits & 16383)-1);
#endif
+ }
// Fragment 0 encoded into 7 bits for 79 unique commands.
diff --git a/cstool/Makefile b/cstool/Makefile
index be2c05c..450ac1b 100644
--- a/cstool/Makefile
+++ b/cstool/Makefile
@@ -24,7 +24,7 @@
endif
clean:
- ${RM} -rf *.o cstool
+ ${RM} -rf *.o $(TARGET)
%.o: %.c
ifeq ($(V),0)