summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assemble.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/assemble.c b/assemble.c
index ad7ea70..748e62f 100644
--- a/assemble.c
+++ b/assemble.c
@@ -262,6 +262,11 @@ static bool jmp_match(int32_t segment, int64_t offset, int bits,
return false;
isize = calcsize(segment, offset, bits, ins, code);
+
+ if (ins->oprs[0].segment == NO_SEG)
+ /* Be optimistic in pass 1 */
+ return true;
+
if (ins->oprs[0].segment != segment)
return false;