From b2ddae46b2f90b8ef7e3d69444a271502612abc9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 20 Jan 2022 15:34:43 +0900 Subject: [PATCH] [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) --- tools/qfcc/source/opcodes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/opcodes.c b/tools/qfcc/source/opcodes.c index 3815c54e1..82f7c750c 100644 --- a/tools/qfcc/source/opcodes.c +++ b/tools/qfcc/source/opcodes.c @@ -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); }