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

Function SSSNROMPower

src/boards/famicombox.cpp:69–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static void SSSNROMPower(void) {
70 regs[0] = regs[1] = regs[2] = regs[3] = regs[4] = regs[5] = regs[6] = 0;
71 regs[7] = 0xff;
72 Sync();
73 FCEU_MemoryRand(WRAM, WRAMSIZE, true);
74// SetWriteHandler(0x0000,0x1FFF,SSSNROMRamWrite);
75 SetReadHandler(0x0800, 0x1FFF, CartBR);
76 SetWriteHandler(0x0800, 0x1FFF, CartBW);
77 SetReadHandler(0x5000, 0x5FFF, SSSNROMRead);
78 SetWriteHandler(0x5000, 0x5FFF, SSSNROMWrite);
79 SetReadHandler(0x6000, 0x7FFF, CartBR);
80 SetWriteHandler(0x6000, 0x7FFF, CartBW);
81 SetReadHandler(0x8000, 0xFFFF, CartBR);
82 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
83}
84
85static void SSSNROMReset(void) {
86 regs[1] = regs[2] = regs[3] = regs[4] = regs[5] = regs[6] = 0;

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected