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

Function updateScreenHires40Simplified

source/NTSC.cpp:1521–1546  ·  view source on GitHub ↗

Handles both the "SingleHires40" & "DoubleHires40" cases, via UpdateHiResCell()

Source from the content-addressed store, hash-verified

1519
1520// Handles both the "SingleHires40" & "DoubleHires40" cases, via UpdateHiResCell()
1521static void updateScreenHires40Simplified (long cycles6502)
1522{
1523 if (g_nVideoMixed && g_nVideoClockVert >= VIDEO_SCANNER_Y_MIXED)
1524 {
1525 g_pFuncUpdateTextScreen( cycles6502 );
1526 return;
1527 }
1528
1529 for (; cycles6502 > 0; --cycles6502)
1530 {
1531 if (g_nVideoClockVert < VIDEO_SCANNER_Y_DISPLAY)
1532 {
1533 if ((g_nVideoClockHorz < VIDEO_SCANNER_HORZ_COLORBURST_END) && (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_COLORBURST_BEG))
1534 {
1535 g_nColorBurstPixels = 1024;
1536 }
1537 else if (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_START)
1538 {
1539 uint16_t addr = getVideoScannerAddressHGR();
1540 UpdateHiResCell(g_nVideoClockHorz-VIDEO_SCANNER_HORZ_START, g_nVideoClockVert, addr, g_pVideoAddress);
1541 g_pVideoAddress += 14;
1542 }
1543 }
1544 updateVideoScannerHorzEOLSimple();
1545 }
1546}
1547
1548//===========================================================================
1549static void updateScreenSingleHires40Duochrome(long cycles6502)

Callers

nothing calls this directly

Calls 3

UpdateHiResCellFunction · 0.85

Tested by

no test coverage detected