diff options
-rw-r--r-- | asm/directiv.c | 1 | ||||
-rw-r--r-- | asm/parser.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/asm/directiv.c b/asm/directiv.c index 68a74a12..89750c8c 100644 --- a/asm/directiv.c +++ b/asm/directiv.c @@ -399,6 +399,7 @@ bool process_directives(char *directive) "in pass two"); in_absolute = true; location.segment = NO_SEG; + location.offset = absolute.offset; break; } diff --git a/asm/parser.c b/asm/parser.c index 40188410..64d7a024 100644 --- a/asm/parser.c +++ b/asm/parser.c @@ -486,7 +486,8 @@ restart_parse: * Generally fix things. I think this is right as it is, but * am still not certain. */ - define_label(result->label, location.segment, + define_label(result->label, + in_absolute ? absolute.segment : location.segment, location.offset, true); } } |