src/mess/machine/nes_pcb.c
| r8309 | r8310 | |
| 1136 | 1136 | { |
| 1137 | 1137 | running_machine *machine = space->machine; |
| 1138 | 1138 | nes_state *state = (nes_state *)machine->driver_data; |
| 1139 | |
| 1140 | // skip this function if we are emulating a MMC3 clone with mid writes |
| 1141 | if (state->mmc_write_mid != NULL) |
| 1142 | return; |
| 1139 | 1143 | |
| 1140 | 1144 | if (BIT(state->mmc_latch2, 7)) |
| 1141 | 1145 | memory_install_readwrite_bank(space, 0x6000, 0x7fff, 0, 0, "bank5"); |
| r8309 | r8310 | |
| 1331 | 1335 | switch (offset & 0x6001) |
| 1332 | 1336 | { |
| 1333 | 1337 | case 0x0000: |
| 1334 | | mmc6_helper = state->mmc_cmd1 ^ data; |
| 1338 | mmc6_helper = state->mmc_latch1 ^ data; |
| 1335 | 1339 | state->mmc_latch1 = data; |
| 1336 | 1340 | |
| 1337 | 1341 | if (!state->mmc_latch2 && BIT(data, 5)) // if WRAM is disabled and has to be enabled, write |