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

Function FNS_Power

src/boards/fns.cpp:220–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static void FNS_Power(void) {
221 lreset = 0;
222 SetWriteHandler(0x8000, 0xFFFF, MMC1_write);
223 SetReadHandler(0x8000, 0xFFFF, CartBR);
224
225 kanji_page = 0;
226 kanji_pos = 0;
227 r40C0 = 0xC0;
228
229 SetWriteHandler(0x4080, 0x40FF, FNC_cmd_write);
230 SetReadHandler(0x4080, 0x40FF, FNC_stat_read);
231 SetReadHandler(0x5000, 0x5FFF, FNC_kanji_read);
232
233 SetReadHandler(0x6000, 0x6000, FNC_cart_i2c_read);
234 SetReadHandler(0x6001, 0x7FFF, CartBR);
235 SetWriteHandler(0x6000, 0x7FFF, CartBW);
236
237 FCEU_CheatAddRAM(8, 0x6000, WRAM);
238 MMC1CMReset();
239}
240
241static void FNS_Close(void) {
242 if (WRAM)

Callers

nothing calls this directly

Calls 4

SetWriteHandlerFunction · 0.85
SetReadHandlerFunction · 0.85
FCEU_CheatAddRAMFunction · 0.85
MMC1CMResetFunction · 0.70

Tested by

no test coverage detected