MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / FormatCharTxtCtrl

Function FormatCharTxtCtrl

source/Debugger/Debugger_Disassembler.cpp:77–92  ·  view source on GitHub ↗

Note: FormatCharTxtCtrl() and RemapChar() ===========================================================================

Source from the content-addressed store, hash-verified

75// Note: FormatCharTxtCtrl() and RemapChar()
76//===========================================================================
77char FormatCharTxtCtrl(const BYTE b, bool* pWasCtrl_)
78{
79 if (pWasCtrl_)
80 *pWasCtrl_ = false;
81
82 char c = (b & 0x7F); // .32 Changed: Lo now maps High Ascii to printable chars. i.e. ML1 D0D0
83 if (b < 0x20) // SPACE
84 {
85 if (pWasCtrl_)
86 {
87 *pWasCtrl_ = true;
88 }
89 c = b + '@'; // map ctrl chars to visible
90 }
91 return c;
92}
93
94//===========================================================================
95char FormatCharTxtHigh(const BYTE b, bool* pWasHi_)

Callers 4

ColorizeSpecialCharFunction · 0.85
FormatCharCopyFunction · 0.85
FormatChar4FontFunction · 0.85
GetDisassemblyLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected