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

Function NTSC_VideoReinitialize

source/NTSC.cpp:2427–2440  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2425
2426//===========================================================================
2427void NTSC_VideoReinitialize( uint32_t cyclesThisFrame, bool bInitVideoScannerAddress )
2428{
2429 if (cyclesThisFrame >= g_videoScanner6502Cycles)
2430 {
2431 // Possible, since ContinueExecution() loop waits until: cycles > g_videoScanner6502Cycles && VBL
2432 cyclesThisFrame %= g_videoScanner6502Cycles;
2433 }
2434
2435 g_nVideoClockVert = (uint16_t) (cyclesThisFrame / VIDEO_SCANNER_MAX_HORZ);
2436 g_nVideoClockHorz = cyclesThisFrame % VIDEO_SCANNER_MAX_HORZ;
2437
2438 if (bInitVideoScannerAddress) // GH#611
2439 updateVideoScannerAddress(); // Pre-condition: g_nVideoClockVert
2440}
2441
2442//===========================================================================
2443void NTSC_VideoInitAppleType ()

Callers 1

VideoReinitializeMethod · 0.85

Calls 1

Tested by

no test coverage detected