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

Function FixMMC3PRG

src/boards/mmc3.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74// ----------------------------------------------------------------------
75
76void FixMMC3PRG(int V) {
77 if (V & 0x40) {
78 pwrap(0xC000, DRegBuf[6]);
79 pwrap(0x8000, ~1);
80 } else {
81 pwrap(0x8000, DRegBuf[6]);
82 pwrap(0xC000, ~1);
83 }
84 pwrap(0xA000, DRegBuf[7]);
85 pwrap(0xE000, ~0);
86}
87
88void FixMMC3CHR(int V) {
89 int cbase = (V & 0x80) << 5;

Callers 15

DECLFWFunction · 0.85
DECLFWFunction · 0.85
DECLFWFunction · 0.85
DECLFWFunction · 0.85
BMCFK23CResetFunction · 0.85
BMCFK23CPowerFunction · 0.85
BMCFK23CAPowerFunction · 0.85
DECLFWFunction · 0.85
DECLFWFunction · 0.85
BSXXXXRPowerFunction · 0.85
MMC3RegResetFunction · 0.85
DECLFWFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected