From ab1eb146c925498d3aaf31112dd5bd590032b794 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Fri, 7 Feb 2020 14:46:17 +0100 Subject: [PATCH] Print special message when PC is not constant --- src/asm/rpn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/asm/rpn.c b/src/asm/rpn.c index abc6fe6a..aceed207 100644 --- a/src/asm/rpn.c +++ b/src/asm/rpn.c @@ -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 */