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

Function MMC1CMReset

src/boards/fns.cpp:122–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static void MMC1CMReset(void) {
123 int i;
124
125 for (i = 0; i < 4; i++)
126 DRegs[i] = 0;
127 Buffer = BufferShift = 0;
128 DRegs[0] = 0x1F;
129
130 DRegs[1] = 0;
131 DRegs[2] = 0;
132 DRegs[3] = 0;
133
134 MMC1MIRROR();
135 MMC1CHR();
136 MMC1PRG();
137}
138
139static DECLFW(FNC_cmd_write) {
140 switch (A) {

Callers 1

FNS_PowerFunction · 0.70

Calls 3

MMC1MIRRORFunction · 0.70
MMC1CHRFunction · 0.70
MMC1PRGFunction · 0.70

Tested by

no test coverage detected