Fixed several address size issues

git-svn-id: svn://svn.cc65.org/cc65/trunk@2729 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-12-12 15:40:08 +00:00
parent 54a50d9354
commit 841c5f814b
5 changed files with 113 additions and 20 deletions

View File

@@ -355,6 +355,11 @@ void SegCheck (void)
if ((F->Len == 1 && ED.AddrSize > ADDR_SIZE_ZP) ||
(F->Len == 2 && ED.AddrSize > ADDR_SIZE_ABS) ||
(F->Len == 3 && ED.AddrSize > ADDR_SIZE_FAR)) {
printf ("Range error\n");
printf ("F->Len = %u, ED.AddrSize = %s\n",
F->Len, AddrSizeToStr (ED.AddrSize));
DumpExpr (F->V.Expr, SymResolve);
printf ("-------------------------------------------\n");
PError (&F->Pos, "Range error");
}
}