From 0ffa4ce9efdb4656fb4126bbdca262d283841f1f Mon Sep 17 00:00:00 2001 From: yenatch Date: Mon, 6 Jan 2014 20:04:55 -0500 Subject: [PATCH] rgbasm: let rgblink try to import undefined symbols Manual imports are inconvenient and don't provide any functionality. --- src/asm/symbol.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/asm/symbol.c b/src/asm/symbol.c index aebe5930..21a07744 100644 --- a/src/asm/symbol.c +++ b/src/asm/symbol.c @@ -364,12 +364,12 @@ sym_GetValue(char *s) } return (getvaluefield(psym)); } else { - if ((nPass == 1) || (psym->nType & SYMF_IMPORT)) { - /* 0x80 seems like a good default value... */ - return (0x80); - } else { - yyerror("'%s' not defined", s); + if (nPass == 2) { + /* Assume undefined symbols are imported from somewhere else */ + psym->nType |= SYMF_IMPORT; } + /* 0x80 seems like a good default value... */ + return (0x80); } } else { if (nPass == 1) {