You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drmortalwombat edited this page Feb 1, 2022
·
4 revisions
#pragma charmap(char, code [,count])
char - 'source' character code (e.g. ASCII, PETSCII or screen)
code - 'destination' character code
count - optional range of source characters to remap (calculated from 'char')
The character map for string and char constants can be changed with a pragma to match a custom character set or PETSCII.
Example:
This function can be used to remap characters within a string by a given offset, making it easy to create strings that are reversed and similar.
The following example will add 128 ($80) to any given string - useful to make characters reversed.