===========================================================================
| 2425 | |
| 2426 | //=========================================================================== |
| 2427 | void 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 | //=========================================================================== |
| 2443 | void NTSC_VideoInitAppleType () |
no test coverage detected