1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-27 19:55:09 +00:00

Allow to map characters to code zero with .CHARMAP.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5921 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2012-11-06 20:36:45 +00:00
parent c8b3275246
commit aad6cd2a14
2 changed files with 5 additions and 5 deletions

View File

@ -2130,10 +2130,10 @@ Here's a list of all control commands and a description, what they do:
<sect1><tt>.CHARMAP</tt><label id=".CHARMAP"><p>
Apply a custom mapping for characters. The command is followed by two
numbers in the range 1..255. The first one is the index of the source
character, the second one is the mapping. The mapping applies to all
character and string constants when they generate output, and overrides
a mapping table specified with the <tt><ref id="option-t" name="-t"></tt>
numbers. The first one is the index of the source character (range 1..255),
the second one is the mapping (range 0..255). The mapping applies to all
character and string constants when they generate output, and overrides a
mapping table specified with the <tt><ref id="option-t" name="-t"></tt>
command line switch.
Example:

View File

@ -637,7 +637,7 @@ static void DoCharMap (void)
/* Read the character code */
Code = ConstExpression ();
if (Code <= 0 || Code > 255) {
if (Code < 0 || Code > 255) {
/* Value out of range */
ErrorSkip ("Range error");
return;