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

Function UpdateLoResCell

source/RGBMonitor.cpp:1026–1038  ·  view source on GitHub ↗

Tested with Deater's Cycle-Counting Megademo

Source from the content-addressed store, hash-verified

1024
1025// Tested with Deater's Cycle-Counting Megademo
1026void UpdateLoResCell (int x, int y, uint16_t addr, bgra_t *pVideoAddress)
1027{
1028 const BYTE val = *MemGetMainPtr(addr);
1029
1030 if ((y & 4) == 0)
1031 {
1032 CopySource(14,2, SRCOFFS_LORES+((x & 1) << 1), ((val & 0xF) << 4), pVideoAddress);
1033 }
1034 else
1035 {
1036 CopySource(14,2, SRCOFFS_LORES+((x & 1) << 1), (val & 0xF0), pVideoAddress);
1037 }
1038}
1039
1040//===========================================================================
1041

Callers 1

Calls 2

MemGetMainPtrFunction · 0.85
CopySourceFunction · 0.85

Tested by

no test coverage detected