Updated the cx16 library to the Commander X16 Kernal's prerelease 35.

This commit is contained in:
Greg King
2019-12-25 10:56:32 -05:00
parent cab4910a7d
commit 3fa253d31f
31 changed files with 508 additions and 271 deletions

View File

@@ -87,6 +87,7 @@ static long Member (long AllocSize)
/* Check the size for a reasonable value */
if (AllocSize >= 0x1000000) {
ErrorSkip ("Range error");
AllocSize = 1;
}
/* Return the size */
@@ -193,7 +194,13 @@ static long DoStructInternal (long Offs, unsigned Type)
if (CurTok.Tok == TOK_SEP) {
ErrorSkip ("Address is missing");
} else {
Offs = Member (1);
Offs = ConstExpression ();
/* Check the address for a reasonable value */
if (Offs >= 0x1000000) {
ErrorSkip ("Range error");
Offs = 0;
}
}
break;