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

Function SetupCartMirroring

src/cart.cpp:332–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void SetupCartMirroring(int m, int hard, uint8 *extra) {
333 if (m < 4) {
334 mirrorhard = 0;
335 setmirror(m);
336 } else {
337 vnapage[0] = NTARAM;
338 vnapage[1] = NTARAM + 0x400;
339 vnapage[2] = extra;
340 vnapage[3] = extra + 0x400;
341 PPUNTARAM = 0xF;
342 }
343 mirrorhard = hard;
344}
345
346static uint8 *GENIEROM = 0;
347

Callers 6

FDSLoadFunction · 0.85
MooMirroringFunction · 0.85
iNESLoadFunction · 0.85
INX_007T_InitFunction · 0.85
UNROM512_InitFunction · 0.85
Mapper218_InitFunction · 0.85

Calls 1

setmirrorFunction · 0.85

Tested by

no test coverage detected