Print special message when PC is not constant

This commit is contained in:
ISSOtm
2020-02-07 14:46:17 +01:00
parent 63054ae0fd
commit ab1eb146c9

View File

@@ -139,7 +139,9 @@ void rpn_Symbol(struct Expression *expr, char *tzSym)
expr->isSymbol = true;
sym_Ref(tzSym);
makeUnknown(expr, "'%s' is not constant at assembly time",
makeUnknown(expr, strcmp(tzSym, "@")
? "'%s' is not constant at assembly time"
: "PC is not constant at assembly time",
tzSym);
expr->nRPNPatchSize += 5; /* 1-byte opcode + 4-byte symbol ID */