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

Function updateScreenDoubleHires80Simplified

source/NTSC.cpp:1293–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1291//===========================================================================
1292
1293void updateScreenDoubleHires80Simplified(long cycles6502) // wsUpdateVideoDblHires
1294{
1295 if (g_nVideoMixed && g_nVideoClockVert >= VIDEO_SCANNER_Y_MIXED)
1296 {
1297 g_pFuncUpdateTextScreen(cycles6502);
1298 return;
1299 }
1300
1301 for (; cycles6502 > 0; --cycles6502)
1302 {
1303 uint16_t addr = getVideoScannerAddressHGR();
1304
1305 if (g_nVideoClockVert < VIDEO_SCANNER_Y_DISPLAY)
1306 {
1307 if ((g_nVideoClockHorz < VIDEO_SCANNER_HORZ_COLORBURST_END) && (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_COLORBURST_BEG))
1308 {
1309 g_nColorBurstPixels = 1024;
1310 }
1311 else if (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_START)
1312 {
1313 uint16_t addr = getVideoScannerAddressHGR();
1314 uint8_t a = *MemGetAuxPtr(addr);
1315 uint8_t m = *MemGetMainPtr(addr);
1316
1317 UpdateDHiResCell(g_nVideoClockHorz - VIDEO_SCANNER_HORZ_START, g_nVideoClockVert, addr, g_pVideoAddress, true, true);
1318 g_pVideoAddress += 14;
1319 }
1320 }
1321 updateVideoScannerHorzEOLSimple();
1322 }
1323}
1324
1325//===========================================================================
1326

Callers

nothing calls this directly

Calls 5

MemGetAuxPtrFunction · 0.85
MemGetMainPtrFunction · 0.85
UpdateDHiResCellFunction · 0.85

Tested by

no test coverage detected