Correct handling of SEG <nonsegment>; per BR 560575

This commit is contained in:
H. Peter Anvin 2002-05-27 02:19:43 +00:00
parent d4bc3f54ec
commit 24762d487c
2 changed files with 8 additions and 0 deletions

2
eval.c
View File

@ -655,6 +655,8 @@ static expr *expr6(int critical)
if (!e)
return NULL;
e = segment_part(e);
if (!e)
return NULL;
if (is_unknown(e) && critical) {
error(ERR_NONFATAL, "unable to determine segment base");
return NULL;

6
test/br560575.asm Normal file
View File

@ -0,0 +1,6 @@
;
; Test for bug report 560575
;
dw seg ~1
dw seg "a"
dw seg 'a'