From 5fcb16d42d564f1b5e0ce4a5b06e95fc36c59181 Mon Sep 17 00:00:00 2001 From: David Haywood Date: Tue, 26 Apr 2016 18:20:46 +0100 Subject: [PATCH] verified the new Tourvision Bull Fight edge connector dump matches the PCE dump 100% too (nw) --- hash/pce_tourvision.xml | 7 +++---- src/mame/drivers/tourvis.cpp | 28 +++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/hash/pce_tourvision.xml b/hash/pce_tourvision.xml index 693f79d84c4..39513445d6c 100644 --- a/hash/pce_tourvision.xml +++ b/hash/pce_tourvision.xml @@ -19,10 +19,9 @@ 1989 bootleg (Tourvision) / Cream - - - - + + + diff --git a/src/mame/drivers/tourvis.cpp b/src/mame/drivers/tourvis.cpp index e1f757d90b5..b1dcef164f5 100644 --- a/src/mame/drivers/tourvis.cpp +++ b/src/mame/drivers/tourvis.cpp @@ -286,7 +286,33 @@ DEVICE_IMAGE_LOAD_MEMBER( tourvision_state, tourvision_cart ) m_cart->common_load_rom(m_cart->get_rom_base(), m_rom_size, "rom"); UINT8* rgn = memregion("maincpu")->base(); - memcpy(rgn, m_cart->get_rom_base(), m_rom_size); + UINT8* base = m_cart->get_rom_base(); + + if (m_rom_size == 0x060000) + { + memcpy(rgn+0x000000, base+0x000000, 0x040000 ); + memcpy(rgn+0x040000, base+0x000000, 0x040000 ); + memcpy(rgn+0x080000, base+0x040000, 0x020000 ); + memcpy(rgn+0x0a0000, base+0x040000, 0x020000 ); + memcpy(rgn+0x0c0000, base+0x040000, 0x020000 ); + memcpy(rgn+0x0e0000, base+0x040000, 0x020000 ); + } + else + { + memcpy(rgn, base, m_rom_size ); + } + +#if 0 + { + FILE *fp; + fp=fopen("tourvision.bin", "w+b"); + if (fp) + { + fwrite(rgn, 0x100000, 1, fp); + fclose(fp); + } + } +#endif return IMAGE_INIT_PASS; }