From bcfeb49d6be4324c30bdb6c95c0cc29ac1b15f2f Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 2 Apr 2020 16:38:33 +0200 Subject: [PATCH] Allow labels to be passed to `DEF` --- src/asm/asmy.y | 3 --- test/asm/pc-def.err | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/asm/asmy.y b/src/asm/asmy.y index 4e02ae64..80e84213 100644 --- a/src/asm/asmy.y +++ b/src/asm/asmy.y @@ -1316,9 +1316,6 @@ relocexpr_no_str : scoped_id { rpn_Symbol(&$$, $1); } } '(' scoped_id ')' { struct sSymbol const *sym = sym_FindSymbol($4); - if (sym && !(sym_IsDefined(sym) && sym->type != SYM_LABEL)) - yyerror("Label \"%s\" is not a valid argument to DEF", - $4); rpn_Number(&$$, !!sym); oDontExpandStrings = false; diff --git a/test/asm/pc-def.err b/test/asm/pc-def.err index 9b09e440..e69de29b 100644 --- a/test/asm/pc-def.err +++ b/test/asm/pc-def.err @@ -1,3 +0,0 @@ -ERROR: pc-def.asm(1): - Label "@" is not a valid argument to DEF -error: Assembly aborted (1 errors)!