Go to the source code of this file.
|
| unsigned short | EncodeShiftJisCharacter (unsigned char cAscii) |
| | Convert one ASCII character to its full-width Shift-JIS code.
|
| void | AsciiToShiftJis (const char *pszAscii, char *pszDest) |
| | Convert ASCII text to the Shift-JIS bytes icon.sys stores a title as.
|
◆ EncodeShiftJisCharacter()
| unsigned short EncodeShiftJisCharacter |
( |
unsigned char | cAscii | ) |
|
Convert one ASCII character to its full-width Shift-JIS code.
A code outside space to tilde is reported through the log as bad ASCII code 0xx. The title is inferred.
- Parameters
-
- Returns
- The two-byte code, lead byte high, or zero for a character outside the tables.
- Ghidra address:
- NTSC-U/C: 0x0029e518
- Ghidra address:
- PAL: 0x002a81e0
◆ AsciiToShiftJis()
| void AsciiToShiftJis |
( |
const char * | pszAscii, |
|
|
char * | pszDest ) |
Convert ASCII text to the Shift-JIS bytes icon.sys stores a title as.
Every character becomes two bytes, lead byte first, and two zero bytes end the result. MCCreateSaveDirTask is its only caller, and the title is inferred from that use.
- Parameters
-
| pszAscii | The text to convert. |
| pszDest | The destination, of at least twice the text length plus two bytes. |
- Ghidra address:
- NTSC-U/C: 0x0029e628
- Ghidra address:
- PAL: 0x002a82f0
◆ kShiftJisSymbolCount
| int kShiftJisSymbolCount = 33 |
|
constexpr |
Punctuation pairs in g_aShiftJisSymbols, one for each printable ASCII symbol.
◆ kShiftJisRangeCount
| int kShiftJisRangeCount = 3 |
|
constexpr |
Runs in g_aShiftJisRanges: the digits, the capital letters, and the small letters.
◆ g_aShiftJisSymbols
The ASCII punctuation from space to tilde in ASCII order, followed by one zero entry.
- Ghidra address:
- NTSC-U/C: 0x003b2430
- Ghidra address:
- PAL: 0x004312f0
◆ g_aShiftJisRanges
The digit, capital, and small-letter runs, based at 0x824f, 0x8260, and 0x8281.
- Ghidra address:
- NTSC-U/C: 0x003b24b8
- Ghidra address:
- PAL: 0x00431378