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

Function updateScreenText40RGB

source/NTSC.cpp:1741–1771  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1739
1740//===========================================================================
1741void updateScreenText40RGB(long cycles6502)
1742{
1743 for (; cycles6502 > 0; --cycles6502)
1744 {
1745 uint16_t addr = getVideoScannerAddressTXT();
1746
1747 if ((g_nVideoClockHorz < VIDEO_SCANNER_HORZ_COLORBURST_END) && (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_COLORBURST_BEG))
1748 {
1749 if (g_nColorBurstPixels > 0)
1750 g_nColorBurstPixels -= 1;
1751 }
1752 else if (g_nVideoClockVert < VIDEO_SCANNER_Y_DISPLAY)
1753 {
1754 if (g_nVideoClockHorz >= VIDEO_SCANNER_HORZ_START)
1755 {
1756 uint8_t* pMain = MemGetMainPtr(addr);
1757 uint8_t m = pMain[0];
1758 uint8_t c = getCharSetBits(m);
1759
1760 if (0 == g_nVideoCharSet && 0x40 == (m & 0xC0)) // Flash only if mousetext not active
1761 c ^= g_nTextFlashMask;
1762
1763 UpdateText40ColorCell(g_nVideoClockHorz - VIDEO_SCANNER_HORZ_START, g_nVideoClockVert, addr, g_pVideoAddress, c, m);
1764 g_pVideoAddress += 14;
1765
1766 }
1767 }
1768 updateVideoScannerHorzEOLSimple();
1769
1770 }
1771}
1772
1773//===========================================================================
1774void updateScreenText80 (long cycles6502)

Callers

nothing calls this directly

Calls 5

MemGetMainPtrFunction · 0.85
getCharSetBitsFunction · 0.85
UpdateText40ColorCellFunction · 0.85

Tested by

no test coverage detected