summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author davidhay <davidhay@localhost>2008-11-23 17:32:47 +0000
committer davidhay <davidhay@localhost>2008-11-23 17:32:47 +0000
commitd3fa796f728a7e9a07b622700e40b644663243d1 (patch)
treef8f908bb4a3e71bf0e86999e3ee9ba9f5eaa8812 /src
parentac999e7f71d28691e526e020aee29397ef43273f (diff)
we can probably do away with these hacks in tnzs.c as well (membank stuff) -- not tested
there's still the sync kludge for tnzs tho...
Diffstat (limited to 'src')
-rw-r--r--src/mame/machine/tnzs.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mame/machine/tnzs.c b/src/mame/machine/tnzs.c
index c6c0db4739a..fad57f389e3 100644
--- a/src/mame/machine/tnzs.c
+++ b/src/mame/machine/tnzs.c
@@ -520,36 +520,18 @@ DRIVER_INIT( plumpop )
DRIVER_INIT( extrmatn )
{
- UINT8 *RAM = memory_region(machine, "main");
-
mcu_type = MCU_EXTRMATN;
-
- /* there's code which falls through from the fixed ROM to bank #7, I have to */
- /* copy it there otherwise the CPU bank switching support will not catch it. */
- memcpy(&RAM[0x08000],&RAM[0x2c000],0x4000);
}
DRIVER_INIT( arknoid2 )
{
- UINT8 *RAM = memory_region(machine, "main");
-
mcu_type = MCU_ARKANOID;
-
- /* there's code which falls through from the fixed ROM to bank #2, I have to */
- /* copy it there otherwise the CPU bank switching support will not catch it. */
- memcpy(&RAM[0x08000],&RAM[0x18000],0x4000);
}
DRIVER_INIT( drtoppel )
{
- UINT8 *RAM = memory_region(machine, "main");
-
mcu_type = MCU_DRTOPPEL;
- /* there's code which falls through from the fixed ROM to bank #2, I have to */
- /* copy it there otherwise the CPU bank switching support will not catch it. */
- memcpy(&RAM[0x08000],&RAM[0x18000],0x4000);
-
/* drtoppel writes to the palette RAM area even if it has PROMs! We have to patch it out. */
memory_install_write8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xf800, 0xfbff, 0, 0, SMH_NOP);
}
@@ -561,26 +543,15 @@ DRIVER_INIT( chukatai )
DRIVER_INIT( tnzs )
{
- UINT8 *RAM = memory_region(machine, "main");
mcu_type = MCU_TNZS;
-
- /* there's code which falls through from the fixed ROM to bank #7, I have to */
- /* copy it there otherwise the CPU bank switching support will not catch it. */
- memcpy(&RAM[0x08000],&RAM[0x2c000],0x4000);
-
/* we need to install a kludge to avoid problems with a bug in the original code */
memory_install_write8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xef10, 0xef10, 0, 0, tnzs_sync_kludge_w);
}
DRIVER_INIT( tnzsb )
{
- UINT8 *RAM = memory_region(machine, "main");
mcu_type = MCU_NONE_TNZSB;
- /* there's code which falls through from the fixed ROM to bank #7, I have to */
- /* copy it there otherwise the CPU bank switching support will not catch it. */
- memcpy(&RAM[0x08000],&RAM[0x2c000],0x4000);
-
/* we need to install a kludge to avoid problems with a bug in the original code */
memory_install_write8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xef10, 0xef10, 0, 0, tnzs_sync_kludge_w);
}