ref: ab1eb146c925498d3aaf31112dd5bd590032b794
parent: 63054ae0fd5fa5292f0ebab63efb1f9fe035d378
author: ISSOtm <eldredhabert0@gmail.com>
date: Fri Feb 7 09:46:17 EST 2020
Print special message when PC is not constant
--- a/src/asm/rpn.c
+++ b/src/asm/rpn.c
@@ -139,7 +139,9 @@
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 */