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

Function NTSC_VideoUpdateCycles

source/NTSC.cpp:2514–2536  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

2512
2513//===========================================================================
2514void NTSC_VideoUpdateCycles( UINT cycles6502 )
2515{
2516#ifdef LOG_PERF_TIMINGS
2517 extern UINT64 g_timeVideo;
2518 PerfMarker perfMarker(g_timeVideo);
2519#endif
2520
2521 _ASSERT(cycles6502 && cycles6502 < g_videoScanner6502Cycles); // Use NTSC_VideoRedrawWholeScreen() instead
2522
2523 if (g_bDelayVideoMode)
2524 {
2525 VideoUpdateCycles(1); // Video mode change is delayed by 1 cycle
2526
2527 g_bDelayVideoMode = false;
2528 NTSC_SetVideoMode(g_uNewVideoModeFlags);
2529
2530 cycles6502--;
2531 if (!cycles6502)
2532 return;
2533 }
2534
2535 VideoUpdateCycles(cycles6502);
2536}
2537
2538//===========================================================================
2539void NTSC_VideoRedrawWholeScreen( void )

Callers 2

Cpu6502Function · 0.50
Cpu65C02Function · 0.50

Calls 2

VideoUpdateCyclesFunction · 0.85
NTSC_SetVideoModeFunction · 0.85

Tested by

no test coverage detected