summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}