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

Function M69Power

src/boards/69.cpp:223–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221// SUNSOFT-5/FME-7 Sound
222
223static void M69Power(void) {
224 cmdreg = sndcmd = 0;
225 IRQCount = 0xFFFF;
226 IRQa = 0;
227 Sync();
228 SetReadHandler(0x6000, 0x7FFF, M69WRAMRead);
229 SetWriteHandler(0x6000, 0x7FFF, M69WRAMWrite);
230 SetReadHandler(0x8000, 0xFFFF, CartBR);
231 SetWriteHandler(0x8000, 0x9FFF, M69Write0);
232 SetWriteHandler(0xA000, 0xBFFF, M69Write1);
233 SetWriteHandler(0xC000, 0xDFFF, M69SWrite0);
234 SetWriteHandler(0xE000, 0xFFFF, M69SWrite1);
235 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
236}
237
238static void M69Close(void) {
239 if (WRAM)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected