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

Function updateScreenSingleHires40RGB

source/NTSC.cpp:1578–1604  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1576
1577//===========================================================================
1578static void updateScreenSingleHires40RGB(long cycles6502)
1579{
1580 if (g_nVideoMixed && g_nVideoClockVert >= VIDEO_SCANNER_Y_MIXED)
1581 {
1582 g_pFuncUpdateTextScreen(cycles6502);
1583 return;
1584 }
1585
1586 for (; cycles6502 > 0; --cycles6502)
1587 {
1588 if (g_nVideoClockVert < VIDEO_SCANNER_Y_DISPLAY)
1589 {
1590 if ((g_nVideoClockHorz < VIDEO_SCANNER_HORZ_COLORBURST_END) && (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_COLORBURST_BEG))
1591 {
1592 g_nColorBurstPixels = 1024;
1593 }
1594 else if (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_START)
1595 {
1596 uint16_t addr = getVideoScannerAddressHGR();
1597
1598 UpdateHiResRGBCell(g_nVideoClockHorz - VIDEO_SCANNER_HORZ_START, g_nVideoClockVert, addr, g_pVideoAddress);
1599 g_pVideoAddress += 14;
1600 }
1601 }
1602 updateVideoScannerHorzEOLSimple();
1603 }
1604}
1605
1606//===========================================================================
1607void updateScreenSingleHires40 (long cycles6502)

Callers

nothing calls this directly

Calls 3

UpdateHiResRGBCellFunction · 0.85

Tested by

no test coverage detected