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

Function M112Power

src/boards/112.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static void M112Power(void) {
67 bank = 0;
68 setprg16(0xC000, ~0);
69 setprg8r(0x10, 0x6000, 0);
70 SetReadHandler(0x8000, 0xFFFF, CartBR);
71 SetWriteHandler(0x8000, 0xFFFF, M112Write);
72 SetWriteHandler(0x4020, 0x5FFF, M112Write);
73 SetReadHandler(0x6000, 0x7FFF, CartBR);
74 SetWriteHandler(0x6000, 0x7FFF, CartBW);
75 FCEU_CheatAddRAM(8, 0x6000, WRAM);
76}
77
78static void StateRestore(int version) {
79 Sync();

Callers

nothing calls this directly

Calls 5

setprg16Function · 0.85
setprg8rFunction · 0.85
SetReadHandlerFunction · 0.85
SetWriteHandlerFunction · 0.85
FCEU_CheatAddRAMFunction · 0.85

Tested by

no test coverage detected