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

Function DrawByte_SY6522

source/Debugger/Debugger_Display.cpp:2000–2018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1998//===========================================================================
1999
2000void DrawByte_SY6522(std::string& sText, int iCol, WORD iAddress, BYTE data, bool timer1Active, bool timer2Active)
2001{
2002 sText = StrFormat("%02X", data);
2003 if (timer1Active && (iAddress == 4 || iAddress == 5)) // T1C
2004 {
2005 DebuggerSetColorFG(DebuggerGetColor(FG_INFO_TITLE)); // if timer1 active then draw in white
2006 }
2007 else if (timer2Active && (iAddress == 8 || iAddress == 9)) // T2C
2008 {
2009 DebuggerSetColorFG(DebuggerGetColor(FG_INFO_TITLE)); // if timer2 active then draw in white
2010 }
2011 else
2012 {
2013 if ((iCol & 1) == 0)
2014 DebuggerSetColorFG(DebuggerGetColor(FG_SY6522_EVEN));
2015 else
2016 DebuggerSetColorFG(DebuggerGetColor(FG_SY6522_ODD));
2017 }
2018}
2019
2020void DrawByte_AY8913(std::string& sText, int iCol, WORD iAddress, BYTE data, BYTE nAYCurrentRegister)
2021{

Callers 1

DrawLine_MB_SUBUNITFunction · 0.85

Calls 3

StrFormatFunction · 0.85
DebuggerSetColorFGFunction · 0.85
DebuggerGetColorFunction · 0.85

Tested by

no test coverage detected