Debugger: show video-scanner's h,v position (at the expense of losing 2 watches). (#666)

This commit is contained in:
tomcw
2019-09-21 16:37:45 +01:00
parent 3264fd3ee9
commit 9ee9414bb6
9 changed files with 152 additions and 3 deletions
+33 -1
View File
@@ -6811,6 +6811,38 @@ Update_t CmdStackPopPseudo (int nArgs)
return UPDATE_CONSOLE_DISPLAY;
}
// Video __________________________________________________________________________________________
Update_t CmdVideoScannerInfo(int nArgs)
{
if (nArgs != 1)
{
ConsoleBufferPush("Video-scanner display config: <dec|hex|real|apple>");
}
else
{
if (strcmp(g_aArgs[1].sArg, "dec") == 0)
{
g_videoScannerDisplayInfo.isDecimal = true;
}
else if (strcmp(g_aArgs[1].sArg, "hex") == 0)
{
g_videoScannerDisplayInfo.isDecimal = false;
}
else if (strcmp(g_aArgs[1].sArg, "real") == 0)
{
g_videoScannerDisplayInfo.isHorzReal = true;
}
else if (strcmp(g_aArgs[1].sArg, "apple") == 0)
{
g_videoScannerDisplayInfo.isHorzReal = false;
}
}
ConsoleBufferToDisplay();
return UPDATE_ALL;
}
// View ___________________________________________________________________________________________
@@ -8068,7 +8100,7 @@ void OutputTraceLine ()
if (g_bTraceFileWithVideoScanner)
{
uint16_t addr = NTSC_VideoGetScannerAddress(0); // NB. uExecutedCycles==0 as SingleStep() called afterwards
uint16_t addr = NTSC_VideoGetScannerAddressForDebugger();
BYTE data = mem[addr];
fprintf( g_hTraceFile,