From bc4b71f5652b25c0dfc6ab2f767432a847111a42 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 15 Mar 2005 12:13:30 +0000 Subject: [PATCH] Allow to remap the character with code zero. git-svn-id: svn://svn.cc65.org/cc65/trunk@3410 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/pseudo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ca65/pseudo.c b/src/ca65/pseudo.c index d0aaff6df..6ac295017 100644 --- a/src/ca65/pseudo.c +++ b/src/ca65/pseudo.c @@ -456,7 +456,7 @@ static void DoByte (void) } else { EmitByte (Expression ()); } - if (Tok != TOK_COMMA) { + if (Tok != TOK_COMMA) { break; } else { NextTok (); @@ -488,7 +488,7 @@ static void DoCharMap (void) /* Read the index as numerical value */ Index = ConstExpression (); - if (Index < 1 || Index > 255) { + if (Index < 0 || Index > 255) { /* Value out of range */ ErrorSkip ("Range error"); return; @@ -499,10 +499,10 @@ static void DoCharMap (void) /* Read the character code */ Code = ConstExpression (); - if (Code < 1 || Code > 255) { - /* Value out of range */ + if (Code < 0 || Code > 255) { + /* Value out of range */ ErrorSkip ("Range error"); - return; + return; } /* Set the character translation */ -- 2.39.5