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

Function DrawByte_AY8913

source/Debugger/Debugger_Display.cpp:2020–2034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2018}
2019
2020void DrawByte_AY8913(std::string& sText, int iCol, WORD iAddress, BYTE data, BYTE nAYCurrentRegister)
2021{
2022 sText = StrFormat("%02X", data);
2023 if (nAYCurrentRegister == iAddress)
2024 {
2025 DebuggerSetColorFG(DebuggerGetColor(FG_INFO_TITLE)); // if latched address then draw in white
2026 }
2027 else
2028 {
2029 if ((iCol & 1) == 0)
2030 DebuggerSetColorFG(DebuggerGetColor(FG_AY8913_EVEN));
2031 else
2032 DebuggerSetColorFG(DebuggerGetColor(FG_AY8913_ODD));
2033 }
2034}
2035
2036void DrawLine_MB_SUBUNIT(RECT& rect, WORD& iAddress, const int nCols, int iForeground, int iBackground, UINT subUnit, bool& is6522, MockingboardCard::DEBUGGER_MB_CARD& MB, bool isMockingboardInSlot)
2037{

Callers 2

DrawLine_MB_SUBUNITFunction · 0.85
DrawLine_AY8913_PAIRFunction · 0.85

Calls 3

StrFormatFunction · 0.85
DebuggerSetColorFGFunction · 0.85
DebuggerGetColorFunction · 0.85

Tested by

no test coverage detected