Reduce space required by instruction width

This commit is contained in:
Alexis Engelke
2019-01-13 14:26:26 +01:00
parent c05b555bb0
commit 80458e3288
3 changed files with 13 additions and 11 deletions

View File

@@ -83,10 +83,10 @@ instr_format(const Instr* instr, char buffer[128])
*(cur++) = *(mnemonic++);
}
if (instr->width != 0)
if (INSTR_WIDTH(instr))
{
*(cur++) = '_';
instr_format_decimal(&cur, instr->width);
instr_format_decimal(&cur, INSTR_WIDTH(instr));
}
for (int i = 0; i < 4; i++)