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

Function M176Power

src/boards/176.cpp:112–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static void M176Power(void)
113{
114 SetReadHandler(0x6000,0x7fff,CartBR);
115 SetWriteHandler(0x6000,0x7fff,M176Write_WriteSRAM);
116 SetReadHandler(0x8000,0xFFFF,CartBR);
117 SetWriteHandler(0xA001,0xA001,M176Write_A001);
118 SetWriteHandler(0x5001,0x5001,M176Write_5001);
119 SetWriteHandler(0x5010,0x5010,M176Write_5010);
120 SetWriteHandler(0x5011,0x5011,M176Write_5011);
121 SetWriteHandler(0x5ff1,0x5ff1,M176Write_5FF1);
122 SetWriteHandler(0x5ff2,0x5ff2,M176Write_5FF2);
123 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
124
125 we_sram = 0;
126 sbw = 0;
127 prg[0] = 0;
128 prg[1] = 1;
129 prg[2] = (ROM_size-2)&63;
130 prg[3] = (ROM_size-1)&63;
131 Sync();
132}
133
134
135static void M176Close(void)

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