Debugger: Added new 'cycles <abs|rel>' command to show cycles as absolute or relative.

. removed this functionality from 'videoinfo'
This commit is contained in:
tomcw
2020-01-11 17:38:00 +00:00
parent af720f7352
commit 68eb7ea1e1
4 changed files with 40 additions and 6 deletions
+25 -4
View File
@@ -6873,10 +6873,6 @@ Update_t CmdVideoScannerInfo(int nArgs)
g_videoScannerDisplayInfo.isHorzReal = true;
else if (strcmp(g_aArgs[1].sArg, "apple") == 0)
g_videoScannerDisplayInfo.isHorzReal = false;
else if (strcmp(g_aArgs[1].sArg, "abs") == 0)
g_videoScannerDisplayInfo.isAbsCycle = true;
else if (strcmp(g_aArgs[1].sArg, "rel") == 0)
g_videoScannerDisplayInfo.isAbsCycle = false;
else
return Help_Arg_1(CMD_VIDEO_SCANNER_INFO);
}
@@ -6888,6 +6884,31 @@ Update_t CmdVideoScannerInfo(int nArgs)
return UPDATE_ALL;
}
// Cycles __________________________________________________________________________________________
Update_t CmdCyclesInfo(int nArgs)
{
if (nArgs != 1)
{
return Help_Arg_1(CMD_CYCLES_INFO);
}
else
{
if (strcmp(g_aArgs[1].sArg, "abs") == 0)
g_videoScannerDisplayInfo.isAbsCycle = true;
else if (strcmp(g_aArgs[1].sArg, "rel") == 0)
g_videoScannerDisplayInfo.isAbsCycle = false;
else
return Help_Arg_1(CMD_CYCLES_INFO);
}
TCHAR sText[CONSOLE_WIDTH];
ConsoleBufferPushFormat(sText, "Cycles display updated: %s", g_aArgs[1].sArg);
ConsoleBufferToDisplay();
return UPDATE_ALL;
}
// View ___________________________________________________________________________________________
// See: CmdWindowViewOutput (int nArgs)