From c550a4136b278f69c0127f4a765ac64af96201e7 Mon Sep 17 00:00:00 2001 From: davidhay Date: Sun, 23 Nov 2008 19:39:01 +0000 Subject: [PATCH] some more memcpy bank cases. --- src/mame/drivers/lsasquad.c | 15 +++------------ src/mame/drivers/missb2.c | 14 +------------- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/src/mame/drivers/lsasquad.c b/src/mame/drivers/lsasquad.c index e54def7c88e..e158b815734 100644 --- a/src/mame/drivers/lsasquad.c +++ b/src/mame/drivers/lsasquad.c @@ -755,23 +755,14 @@ ROM_START( daikaiju ) ROM_LOAD( "a74_06.ic9", 0x0600, 0x0400, CRC(cad554e7) SHA1(7890d948bfef198309df810f8401d224224a73a1) ) /* priority */ ROM_END -static void init_common(running_machine *machine) -{ - UINT8 *ROM = memory_region(machine, "main"); - /* an instruction at $7FFF straddles the bank switch boundary at - $8000 into rom bank #0 and then continues into the bank so - copy this bank as the CPU bank switching won't catch it */ - memcpy(&ROM[0x08000], &ROM[0x10000], 0x2000); -} /* coin inputs are inverted in storming */ -static DRIVER_INIT( lsasquad ) { lsasquad_invertcoin = 0x00; init_common(machine); } -static DRIVER_INIT( storming ) { lsasquad_invertcoin = 0x0c; init_common(machine); } -static DRIVER_INIT( daikaiju ) { init_common(machine); } +static DRIVER_INIT( lsasquad ) { lsasquad_invertcoin = 0x00; } +static DRIVER_INIT( storming ) { lsasquad_invertcoin = 0x0c; } GAME( 1986, lsasquad, 0, lsasquad, lsasquad, lsasquad, ROT270, "Taito", "Land Sea Air Squad / Riku Kai Kuu Saizensen", GAME_IMPERFECT_GRAPHICS ) GAME( 1986, storming, lsasquad, lsasquad, lsasquad, storming, ROT270, "Taito", "Storming Party / Riku Kai Kuu Saizensen", GAME_IMPERFECT_GRAPHICS ) -GAME( 1986, daikaiju, 0, daikaiju, daikaiju, daikaiju, ROT270, "Taito", "Daikaiju no Gyakushu", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION) +GAME( 1986, daikaiju, 0, daikaiju, daikaiju, 0, ROT270, "Taito", "Daikaiju no Gyakushu", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION) diff --git a/src/mame/drivers/missb2.c b/src/mame/drivers/missb2.c index 5dda0330a6b..83c74462920 100644 --- a/src/mame/drivers/missb2.c +++ b/src/mame/drivers/missb2.c @@ -431,18 +431,6 @@ ROM_START( missb2 ) ROM_LOAD( "a71-25.bin", 0x0000, 0x0100, CRC(2d0f8545) SHA1(089c31e2f614145ef2743164f7b52ae35bc06808) ) /* video timing - taken from bublbobl */ ROM_END -/* Driver Initialization */ - -static DRIVER_INIT( missb2 ) -{ - UINT8 *ROM = memory_region(machine, "main"); - - /* in Bubble Bobble, bank 0 has code falling from 7fff to 8000, - so I have to copy it there because bank switching wouldn't catch it */ - memcpy(ROM+0x08000,ROM+0x10000,0x4000); - -} - /* Game Drivers */ -GAME( 1996, missb2, 0, missb2, missb2, missb2, ROT0, "Alpha Co", "Miss Bubble 2", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) +GAME( 1996, missb2, 0, missb2, missb2, 0, ROT0, "Alpha Co", "Miss Bubble 2", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )