Previous 15994 Revisions Next

r8310 Friday 25th June, 2010 at 05:13:33 UTC by Fabio Priuli
[NES] fixed pcb emulation of MMC3 clone boards with no WRAM and registers in 0x6000-0x7fff
[src/mess/machine]nes_pcb.c

src/mess/machine/nes_pcb.c
r8309r8310
11361136{
11371137   running_machine *machine = space->machine;
11381138   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;
11391143
11401144   if (BIT(state->mmc_latch2, 7))
11411145      memory_install_readwrite_bank(space, 0x6000, 0x7fff, 0, 0, "bank5");
r8309r8310
13311335   switch (offset & 0x6001)
13321336   {
13331337      case 0x0000:
1334         mmc6_helper = state->mmc_cmd1 ^ data;
1338         mmc6_helper = state->mmc_latch1 ^ data;
13351339         state->mmc_latch1 = data;
13361340
13371341         if (!state->mmc_latch2 && BIT(data, 5))   // if WRAM is disabled and has to be enabled, write

Previous 15994 Revisions Next


© 1998-2018 The MESS Team