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 f59969f..9781e2f 100644
--- a/opcode-bitmask-gen.c
+++ b/opcode-bitmask-gen.c
@@ -436,7 +436,7 @@ uint32_t get_addr_mode_bits(const char **list, int *ext) {
}
is_ext = (bits & ext_mask) ? 1 : is_ext;
- addr_modes |= (is_inv) ? ~(bits) & (max_addr_mode_mask & (is_ext) ? -1 : ~ext_mask) : bits;
+ addr_modes |= (is_inv) ? ~(bits) & (max_addr_mode_mask & ((is_ext) ? -1 : ~ext_mask)) : bits;
addr_modes &= (is_ext && (bits & ~(AM_ORTHO|AM_ORTHO2))) ? ~(AM_ORTHO|AM_ORTHO2) : -1;
if (is_ext) {