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

Function updateScreenText40

source/NTSC.cpp:1709–1737  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1707
1708//===========================================================================
1709void updateScreenText40 (long cycles6502)
1710{
1711 for (; cycles6502 > 0; --cycles6502)
1712 {
1713 uint16_t addr = getVideoScannerAddressTXT();
1714
1715 if ((g_nVideoClockHorz < VIDEO_SCANNER_HORZ_COLORBURST_END) && (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_COLORBURST_BEG))
1716 {
1717 if (g_nColorBurstPixels > 0)
1718 g_nColorBurstPixels -= 1;
1719 }
1720 else if (g_nVideoClockVert < VIDEO_SCANNER_Y_DISPLAY)
1721 {
1722 if (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_START)
1723 {
1724 uint8_t *pMain = MemGetMainPtr(addr);
1725 uint8_t m = pMain[0];
1726 uint8_t c = getCharSetBits(m);
1727 uint16_t bits = g_aPixelDoubleMaskHGR[c & 0x7F]; // Optimization: hgrbits second 128 entries are mirror of first 128
1728
1729 if (0 == g_nVideoCharSet && 0x40 == (m & 0xC0)) // Flash only if mousetext not active
1730 bits ^= g_nTextFlashMask;
1731
1732 updatePixels( bits );
1733 }
1734 }
1735 updateVideoScannerHorzEOL();
1736 }
1737}
1738
1739
1740//===========================================================================

Callers

nothing calls this directly

Calls 5

MemGetMainPtrFunction · 0.85
getCharSetBitsFunction · 0.85
updatePixelsFunction · 0.85

Tested by

no test coverage detected