[qfcc] Show raw opcode when dumping instructions

Allows checking the correct instruction has been selected (it's not:
getting 4-component instructions instead of 1)
This commit is contained in:
Bill Currie 2022-01-20 15:34:43 +09:00
parent 74d00d0a3c
commit b2ddae46b2
1 changed files with 2 additions and 1 deletions

View File

@ -361,5 +361,6 @@ opcode_print_statement (pr_uint_t addr, dstatement_t *st)
} else {
mnemonic = pr_opcodes[st->op].mnemonic;
}
printf ("%04x %8s %04x %04x %04x\n", addr, mnemonic, st->a, st->b, st->c);
printf ("%04x (%03x)%-8s %04x %04x %04x\n",
addr, st->op & 0x1ff, mnemonic, st->a, st->b, st->c);
}