summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-01-16 13:08:26 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2022-01-16 13:08:26 -0400
commit8aef7c3081634e16f039ae563797977c337069dc (patch)
treeb50a772eeac1f90bf5f9983ce77d548ec953cd69
parentc12ed1dd926b6d40c9a88158f94fa48af77e03e1 (diff)
Fix bug in print_mask() where it'd always use the first
instruction entry, rather than the entry of the supplied instruction id(s).
-rw-r--r--opcode-bitmask-gen.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}