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

Function _DrawSoftSwitchAddress

source/Debugger/Debugger_Display.cpp:2591–2599  ·  view source on GitHub ↗

2.9.0.8 ===========================================================================

Source from the content-addressed store, hash-verified

2589// 2.9.0.8
2590//===========================================================================
2591void _DrawSoftSwitchAddress( RECT & rect, int nAddress, int bg_default = BG_INFO )
2592{
2593 DebuggerSetColorBG( DebuggerGetColor( bg_default ));
2594 DebuggerSetColorFG( DebuggerGetColor( FG_DISASM_TARGET ));
2595 PrintTextCursorX( ByteToHexStr( nAddress & 0xFF ).c_str(), rect );
2596
2597 DebuggerSetColorFG( DebuggerGetColor( FG_DISASM_OPERATOR ) );
2598 PrintTextCursorX( ":", rect );
2599}
2600
2601// 2.7.0.7 Cleaned up display of soft-switches to show address.
2602//===========================================================================

Callers 2

_DrawSoftSwitchFunction · 0.85
_DrawTriStateSoftSwitchFunction · 0.85

Calls 5

DebuggerSetColorBGFunction · 0.85
DebuggerGetColorFunction · 0.85
DebuggerSetColorFGFunction · 0.85
PrintTextCursorXFunction · 0.85
ByteToHexStrFunction · 0.85

Tested by

no test coverage detected