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
+16
View File
@@ -1717,6 +1717,12 @@ uint16_t NTSC_VideoGetScannerAddress ( const ULONG uExecutedCycles )
return addr;
}
uint16_t NTSC_VideoGetScannerAddressForDebugger(void)
{
ResetCyclesExecutedForDebugger(); // if in full-speed, then reset cycles so that CpuCalcCycles() doesn't ASSERT
return NTSC_VideoGetScannerAddress(0);
}
//===========================================================================
void NTSC_SetVideoTextMode( int cols )
{
@@ -2311,3 +2317,13 @@ UINT NTSC_GetCyclesPerFrame(void)
{
return g_videoScanner6502Cycles;
}
UINT NTSC_GetVideoLines(void)
{
return (GetVideoRefreshRate() == VR_50HZ) ? VIDEO_SCANNER_MAX_VERT_PAL : VIDEO_SCANNER_MAX_VERT;
}
bool NTSC_IsVisible(void)
{
return (g_nVideoClockVert < VIDEO_SCANNER_Y_DISPLAY) && (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_START);
}