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

Function M68Power

src/boards/68.cpp:122–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static void M68Power(void) {
123 prg_reg = 0;
124 kogame = 0;
125 Sync();
126 M68NTfix();
127 SetReadHandler(0x6000, 0x7FFF, CartBR);
128 SetReadHandler(0x8000, 0xBFFF, M68Read);
129 SetReadHandler(0xC000, 0xFFFF, CartBR);
130 SetWriteHandler(0x8000, 0xBFFF, M68WriteCHR);
131 SetWriteHandler(0xC000, 0xCFFF, M68WriteNT1);
132 SetWriteHandler(0xD000, 0xDFFF, M68WriteNT2);
133 SetWriteHandler(0xE000, 0xEFFF, M68WriteMIR);
134 SetWriteHandler(0xF000, 0xFFFF, M68WriteROM);
135 SetWriteHandler(0x6000, 0x6000, M68WriteLo);
136 SetWriteHandler(0x6001, 0x7FFF, CartBW);
137 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
138}
139
140static void M68Close(void) {
141 if (WRAM)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected