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:
@@ -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>
|
<sect1><tt>.CHARMAP</tt><label id=".CHARMAP"><p>
|
||||||
|
|
||||||
Apply a custom mapping for characters. The command is followed by two
|
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
|
numbers. The first one is the index of the source character (range 1..255),
|
||||||
character, the second one is the mapping. The mapping applies to all
|
the second one is the mapping (range 0..255). The mapping applies to all
|
||||||
character and string constants when they generate output, and overrides
|
character and string constants when they generate output, and overrides a
|
||||||
a mapping table specified with the <tt><ref id="option-t" name="-t"></tt>
|
mapping table specified with the <tt><ref id="option-t" name="-t"></tt>
|
||||||
command line switch.
|
command line switch.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|||||||
@@ -637,7 +637,7 @@ static void DoCharMap (void)
|
|||||||
|
|
||||||
/* Read the character code */
|
/* Read the character code */
|
||||||
Code = ConstExpression ();
|
Code = ConstExpression ();
|
||||||
if (Code <= 0 || Code > 255) {
|
if (Code < 0 || Code > 255) {
|
||||||
/* Value out of range */
|
/* Value out of range */
|
||||||
ErrorSkip ("Range error");
|
ErrorSkip ("Range error");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user