From 8aef7c3081634e16f039ae563797977c337069dc Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 16 Jan 2022 13:08:26 -0400 Subject: Fix bug in print_mask() where it'd always use the first instruction entry, rather than the entry of the supplied instruction id(s). --- opcode-bitmask-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opcode-bitmask-gen.c b/opcode-bitmask-gen.c index 304809c..3fe26fa 100644 --- a/opcode-bitmask-gen.c +++ b/opcode-bitmask-gen.c @@ -355,7 +355,7 @@ int print_mask(uint32_t addr_modes, instruction_id *inst_ids, int ext) { case ORTHO: inst_entry = &ortho_inst[inst_ids[i].id]; break; } - if (inst->am & addr_mode_mask) { + if (inst_entry->am & addr_mode_mask) { search_inst_table_entry(inst_entry, mask, addr_modes, inst_ids[i].ext, ext, inst_ids[i].id); } } -- cgit v1.2.3-13-gbd6f