* Chop space for instructions without arguments on udis86

This commit is contained in:
pancake 2011-06-04 03:14:57 +02:00
parent 535a2aa713
commit 42aaadb584

View File

@ -225,8 +225,12 @@ extern void ud_translate_intel(struct ud* u)
mkasm(u, "repne "); mkasm(u, "repne ");
/* print the instruction mnemonic */ /* print the instruction mnemonic */
mkasm(u, "%s ", ud_lookup_mnemonic(u->mnemonic));
if (u->operand[0].type == UD_NONE) {
mkasm(u, "%s", ud_lookup_mnemonic(u->mnemonic));
} else {
mkasm(u, "%s ", ud_lookup_mnemonic(u->mnemonic));
}
/* operand 1 */ /* operand 1 */
if (u->operand[0].type != UD_NONE) { if (u->operand[0].type != UD_NONE) {
int cast = 0; int cast = 0;