| 135 | } |
| 136 | |
| 137 | static void M178Power(void) { |
| 138 | reg[0] = reg[1] = reg[2] = reg[3] = SensorDelay = 0; |
| 139 | Sync(); |
| 140 | // pcmwrite = GetWriteHandler(0x4011); |
| 141 | SetWriteHandler(0x4800, 0x4fff, M178Write); |
| 142 | SetWriteHandler(0x5800, 0x5fff, M178WriteSnd); |
| 143 | SetReadHandler(0x5800, 0x5fff, M178ReadSnd); |
| 144 | SetReadHandler(0x5000, 0x5000, M178ReadSensor); |
| 145 | SetReadHandler(0x6000, 0x7fff, CartBR); |
| 146 | SetWriteHandler(0x6000, 0x7fff, CartBW); |
| 147 | SetReadHandler(0x8000, 0xffff, CartBR); |
| 148 | FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); |
| 149 | } |
| 150 | |
| 151 | static void M178SndClk(int a) { |
| 152 | SensorDelay += a; |
nothing calls this directly
no test coverage detected