1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-03 06:29:36 +00:00

Allow to remap the character with code zero.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3410 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-03-15 12:13:30 +00:00
parent bf9af68173
commit bc4b71f565

View File

@ -456,7 +456,7 @@ static void DoByte (void)
} else { } else {
EmitByte (Expression ()); EmitByte (Expression ());
} }
if (Tok != TOK_COMMA) { if (Tok != TOK_COMMA) {
break; break;
} else { } else {
NextTok (); NextTok ();
@ -488,7 +488,7 @@ static void DoCharMap (void)
/* Read the index as numerical value */ /* Read the index as numerical value */
Index = ConstExpression (); Index = ConstExpression ();
if (Index < 1 || Index > 255) { if (Index < 0 || Index > 255) {
/* Value out of range */ /* Value out of range */
ErrorSkip ("Range error"); ErrorSkip ("Range error");
return; return;
@ -499,10 +499,10 @@ static void DoCharMap (void)
/* Read the character code */ /* Read the character code */
Code = ConstExpression (); Code = ConstExpression ();
if (Code < 1 || Code > 255) { if (Code < 0 || Code > 255) {
/* Value out of range */ /* Value out of range */
ErrorSkip ("Range error"); ErrorSkip ("Range error");
return; return;
} }
/* Set the character translation */ /* Set the character translation */