aboutsummaryrefslogtreecommitdiff
path: root/lib/x86/dis-main.inc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x86/dis-main.inc.h')
-rw-r--r--lib/x86/dis-main.inc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x86/dis-main.inc.h b/lib/x86/dis-main.inc.h
index 4be45d8..9959409 100644
--- a/lib/x86/dis-main.inc.h
+++ b/lib/x86/dis-main.inc.h
@@ -263,7 +263,7 @@ got_bits: UNUSED
default: __builtin_abort();
}
- bool cond = (byte1 & 0xf0) != 0xe0;
+ bool cond = !(byte1 == 0xe2 || (byte1 >= 0xe8 && byte1 <= 0xeb));
bool call = !(bits & I_JMP);
P(branch)(ctx, ctx->base.pc + ctx->base.op_size + imm,
cond * CC_CONDITIONAL | call * CC_CALL);