or character codes with a value of zero. The assembler runs into a CHECK in
tgttrans anyway if the index is zero.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5826
b7a2c559-68d2-44c3-8de9-
860c34a00d81
/* Read the index as numerical value */
Index = ConstExpression ();
- if (Index < 0 || Index > 255) {
+ if (Index <= 0 || Index > 255) {
/* Value out of range */
ErrorSkip ("Range error");
return;
/* Read the character code */
Code = ConstExpression ();
- if (Code < 0 || Code > 255) {
+ if (Code <= 0 || Code > 255) {
/* Value out of range */
ErrorSkip ("Range error");
return;