ref: af5f8893264ff3bebf14ae73aadf9131c76a7ce1
parent: 3e92f333195e9be181bf7c556bbc12e4446b8c96
parent: 0ffa4ce9efdb4656fb4126bbdca262d283841f1f
author: Anthony J. Bentley <[email protected]>
date: Sun Jan 12 16:30:39 EST 2014
Merge https://github.com/yenatch/rgbds
--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -364,12 +364,12 @@
}
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) {