Source clean-up, portability and debugger fixes. (PR #842)

And fix two general issues:
- confusing behavior when entering the builtin (mini) assembler mode,
- and also fixes the "cl" (clear flag) command - which was documented, but did not work at all (due to an "interesting" command/syntax conflict...).
This commit is contained in:
ThorstenB
2020-10-11 18:14:03 +02:00
committed by GitHub
parent 6125c2b12d
commit b0b033da49
19 changed files with 79 additions and 89 deletions
+2 -2
View File
@@ -3528,7 +3528,7 @@ void DrawZeroPagePointers ( int line )
}
else
{
int nMin = min( nLen1, nMaxSymbolLen );
int nMin = MIN( nLen1, nMaxSymbolLen );
memcpy(sText, pSymbol1, nMin);
DebuggerSetColorFG( DebuggerGetColor( FG_DISASM_SYMBOL ) );
}
@@ -3970,7 +3970,7 @@ void DrawSubWindow_Source2 (Update_t bUpdate)
// Draw Title
std::string sTitle = " Source: " + g_aSourceFileName;
sTitle.resize(min(sTitle.size(), size_t(g_nConsoleDisplayWidth)));
sTitle.resize(MIN(sTitle.size(), size_t(g_nConsoleDisplayWidth)));
DebuggerSetColorBG( DebuggerGetColor( BG_SOURCE_TITLE ));
DebuggerSetColorFG( DebuggerGetColor( FG_SOURCE_TITLE ));