Previous 15994 Revisions Next

r10129 Saturday 22nd January, 2011 at 13:17:21 UTC by Tim Schuerewegen
[GBA] Fixed EEPROM detection for "Banjo-Kazooie" and "Custom Robo GX".
[docs]messnew.txt
[src/mess/drivers]gba.c

src/mess/drivers/gba.c
r10128r10129
23282328   int i;
23292329   UINT32 cart_size;
23302330   UINT8 game_code[4] = { 0 };
2331   int game_noflash, game_eeprom_large;
23312332   gba_state *state = image.device().machine->driver_data<gba_state>();
23322333
23332334   state->nvsize = 0;
r10128r10129
23502351      memcpy(game_code, ROM + 0xAC, 4);
23512352   }
23522353
2354    // "Backyard Hockey" and "Banjo-Kazooie" false positive for "FLASH"
2355   game_noflash = (!memcmp(game_code, "BYHE", 4)) || (!memcmp(game_code, "BKZE", 4)) || (!memcmp(game_code, "BKZX", 4));
2356
2357   // "Bomberman Max 2", "Broken Sword" and "Custom Robo GX" require 14 bit EEPROM addressing
2358   game_eeprom_large = ((!memcmp(game_code, "AMHE", 4)) || (!memcmp(game_code, "AMYJ", 4)) || (!memcmp(game_code, "AMYE", 4))
2359      || (!memcmp(game_code, "AMHP", 4)) || (!memcmp(game_code, "AMHJ", 4)) || (!memcmp(game_code, "AMYP", 4))
2360      || (!memcmp(game_code, "ABJE", 4)) || (!memcmp(game_code, "ABJP", 4)) || (!memcmp(game_code, "ARJJ", 4)));
2361
23532362   for (i = 0; i < cart_size; i++)
23542363   {
23552364      if (!memcmp(&ROM[i], "EEPROM_", 7))
r10128r10129
23572366         state->nvptr = (UINT8 *)&state->gba_eeprom;
23582367         state->nvsize = 0x2000;
23592368
2360         // "Bomberman Max 2" and "Broken Sword" use 14 bit addressing
2361         if ((!memcmp(game_code, "AMHE", 4)) || (!memcmp(game_code, "AMYJ", 4)) || (!memcmp(game_code, "AMYE", 4)) ||
2362            (!memcmp(game_code, "AMHP", 4)) || (!memcmp(game_code, "AMHJ", 4)) || (!memcmp(game_code, "AMYP", 4)) ||
2363            (!memcmp(game_code, "ABJE", 4)) || (!memcmp(game_code, "ABJP", 4)))
2369         if (game_eeprom_large)
23642370         {
23652371            state->eeprom_addr_bits = 14;
23662372         }
r10128r10129
24012407         memory_install_write32_handler(cpu_get_address_space(image.device().machine->device("maincpu"), ADDRESS_SPACE_PROGRAM), 0xe000000, 0xe01ffff, 0, 0, flash_w);
24022408         break;
24032409      }
2404      else if ((!memcmp(&ROM[i], "FLASH", 5)) && (memcmp(game_code, "BYHE", 4))) // "Backyard Hockey" false positive
2410      else if ((!memcmp(&ROM[i], "FLASH", 5)) && (!game_noflash))
24052411      {
24062412         state->nvptr = NULL;
24072413         state->nvsize = 0;
docs/messnew.txt
r10128r10129
2323----------------------
2424- [ADAM] Added dumps of the internal M6801 ROMs. [KevinP]
2525
26- [GBA] Fixed EEPROM detection for "Banjo-Kazooie" and "Custom Robo GX".
27  [Tim Schuerewegen]
28
2629- [PIPPIN] Added pre release rom
2730
2831- [PV1000] 4 new cartridge dumps for the software list.  [anondumper]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team