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

Function M178Power

src/boards/178.cpp:137–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static void M178Power(void) {
138 reg[0] = reg[1] = reg[2] = reg[3] = SensorDelay = 0;
139 Sync();
140// pcmwrite = GetWriteHandler(0x4011);
141 SetWriteHandler(0x4800, 0x4fff, M178Write);
142 SetWriteHandler(0x5800, 0x5fff, M178WriteSnd);
143 SetReadHandler(0x5800, 0x5fff, M178ReadSnd);
144 SetReadHandler(0x5000, 0x5000, M178ReadSensor);
145 SetReadHandler(0x6000, 0x7fff, CartBR);
146 SetWriteHandler(0x6000, 0x7fff, CartBW);
147 SetReadHandler(0x8000, 0xffff, CartBR);
148 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
149}
150
151static void M178SndClk(int a) {
152 SensorDelay += a;

Callers

nothing calls this directly

Calls 4

SetWriteHandlerFunction · 0.85
SetReadHandlerFunction · 0.85
FCEU_CheatAddRAMFunction · 0.85
SyncFunction · 0.70

Tested by

no test coverage detected