[gamecode] Update printed opcode width

Opcodes now need 3 hex digits (hexits?) to print.
This commit is contained in:
Bill Currie 2022-01-20 18:37:28 +09:00
parent c39558efaa
commit 5f66bfe887

View file

@ -1586,7 +1586,7 @@ PR_PrintStatement (progs_t *pr, dstatement_t *s, int contents)
dasprintf (res->line, "%04x ", addr); dasprintf (res->line, "%04x ", addr);
if (pr_debug->int_val > 2) { if (pr_debug->int_val > 2) {
dasprintf (res->line, dasprintf (res->line,
"%02x %04x(%8s)[%d] %04x(%8s)[%d] %04x(%8s)[%d]\t", "%03x %04x(%8s)[%d] %04x(%8s)[%d] %04x(%8s)[%d]\t",
s->op, s->op,
s->a, pr_type_name[op_type[0]], op_width[0], s->a, pr_type_name[op_type[0]], op_width[0],
s->b, pr_type_name[op_type[1]], op_width[1], s->b, pr_type_name[op_type[1]], op_width[1],