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

Function setchr2r

src/cart.cpp:239–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void setchr2r(int r, uint32 A, uint32 V) {
240 if (!CHRptr[r]) return;
241 FCEUPPU_LineUpdate();
242 V &= CHRmask2[r];
243 VPageR[(A) >> 10] = VPageR[((A) >> 10) + 1] = &CHRptr[r][(V) << 11] - (A);
244 if (CHRram[r])
245 PPUCHRRAM |= (3 << (A >> 10));
246 else
247 PPUCHRRAM &= ~(3 << (A >> 10));
248}
249
250void setchr4r(int r, unsigned int A, unsigned int V) {
251 if (!CHRptr[r]) return;

Callers 2

setchr2Function · 0.85
SyncFunction · 0.85

Calls 1

FCEUPPU_LineUpdateFunction · 0.85

Tested by

no test coverage detected