diff options
Diffstat (limited to 'source/encoding.c')
-rw-r--r-- | source/encoding.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/encoding.c b/source/encoding.c new file mode 100644 index 0000000..a69fc7e --- /dev/null +++ b/source/encoding.c | |||
@@ -0,0 +1,14 @@ | |||
1 | #include "encoding.h" | ||
2 | |||
3 | const char charmap[] = { | ||
4 | ' ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '!', '?', '.', '-', ' ', | ||
5 | ' ', '\"', '\"', '\'', '\'', '*', '*', ' ', ',', ' ', '/', 'A', 'B', 'C', 'D', 'E', | ||
6 | 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', | ||
7 | 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', | ||
8 | 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', ' ' | ||
9 | }; | ||
10 | |||
11 | char debugGen3Decode(u8 val) | ||
12 | { | ||
13 | return charmap[val - 0xA0]; | ||
14 | } | ||