MCPcopy Create free account
hub / github.com/TASEmulators/fceux / setchr4r

Function setchr4r

src/cart.cpp:250–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void setchr4r(int r, unsigned int A, unsigned int V) {
251 if (!CHRptr[r]) return;
252 FCEUPPU_LineUpdate();
253 V &= CHRmask4[r];
254 VPageR[(A) >> 10] = VPageR[((A) >> 10) + 1] =
255 VPageR[((A) >> 10) + 2] = VPageR[((A) >> 10) + 3] = &CHRptr[r][(V) << 12] - (A);
256 if (CHRram[r])
257 PPUCHRRAM |= (15 << (A >> 10));
258 else
259 PPUCHRRAM &= ~(15 << (A >> 10));
260}
261
262void setchr8r(int r, uint32 V) {
263 int x;

Callers 5

setchr4Function · 0.85
SyncFunction · 0.85
SyncFunction · 0.85
M165CWFunction · 0.85
chrSyncFunction · 0.85

Calls 1

FCEUPPU_LineUpdateFunction · 0.85

Tested by

no test coverage detected