mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +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:
parent
c8b3275246
commit
aad6cd2a14
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user