From 8cb8840dc99c5a5446f0dd78ba890521625545f4 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Mon, 13 Aug 2018 18:08:05 +0200 Subject: new working clone ------------------------------- Tecmo World Cup '90 (Euro set 3) [coolmod, The Dumping Union] --- src/mame/drivers/wc90.cpp | 103 ++++++++++++++++++++++++++++++---------------- src/mame/includes/wc90.h | 7 +++- src/mame/mame.lst | 1 + 3 files changed, 74 insertions(+), 37 deletions(-) diff --git a/src/mame/drivers/wc90.cpp b/src/mame/drivers/wc90.cpp index dac413fd090..d325744cc90 100644 --- a/src/mame/drivers/wc90.cpp +++ b/src/mame/drivers/wc90.cpp @@ -9,7 +9,7 @@ Ernesto Corvi TODO: - Dip switches mapping is not complete. ( Anyone has the manual handy? ) -- Hook up trackball controls in wc90t. +- Hook up trackball controls in twcup90t. CPU #1 : Handles background & foreground tiles, controllers, dipswitches. CPU #2 : Handles sprites and palette @@ -46,8 +46,8 @@ CPU #3 To enter into input test mode: --keep pressed one of the start buttons during P.O.S.T.(in wc90 & wc90a). --keep pressed both start buttons during P.O.S.T. until the cross hatch test fade out(in wc90t). +-keep pressed one of the start buttons during P.O.S.T.(all sets but twcup90t). +-keep pressed both start buttons during P.O.S.T. until the cross hatch test fade out(in twcup90t). Press one of the start buttons to exit. @@ -65,44 +65,42 @@ Press one of the start buttons to exit. WRITE8_MEMBER(wc90_state::bankswitch_w) { - membank("mainbank")->set_entry(data >> 3); + m_mainbank->set_entry(data >> 3); } WRITE8_MEMBER(wc90_state::bankswitch1_w) { - membank("subbank")->set_entry(data >> 3); + m_subbank->set_entry(data >> 3); } - - void wc90_state::wc90_map_1(address_map &map) { map(0x0000, 0x7fff).rom(); map(0x8000, 0x9fff).ram(); /* Main RAM */ - map(0xa000, 0xafff).ram().w(FUNC(wc90_state::fgvideoram_w)).share("fgvideoram"); /* fg video ram */ + map(0xa000, 0xafff).ram().w(FUNC(wc90_state::fgvideoram_w)).share(m_fgvideoram); /* fg video ram */ map(0xb000, 0xbfff).ram(); - map(0xc000, 0xcfff).ram().w(FUNC(wc90_state::bgvideoram_w)).share("bgvideoram"); + map(0xc000, 0xcfff).ram().w(FUNC(wc90_state::bgvideoram_w)).share(m_bgvideoram); map(0xd000, 0xdfff).ram(); - map(0xe000, 0xefff).ram().w(FUNC(wc90_state::txvideoram_w)).share("txvideoram"); /* tx video ram */ - map(0xf000, 0xf7ff).bankr("mainbank"); + map(0xe000, 0xefff).ram().w(FUNC(wc90_state::txvideoram_w)).share(m_txvideoram); /* tx video ram */ + map(0xf000, 0xf7ff).bankr(m_mainbank); map(0xf800, 0xfbff).ram().share("share1"); map(0xfc00, 0xfc00).portr("P1"); map(0xfc02, 0xfc02).portr("P2"); map(0xfc05, 0xfc05).portr("SYSTEM"); map(0xfc06, 0xfc06).portr("DSW1"); map(0xfc07, 0xfc07).portr("DSW2"); - map(0xfc02, 0xfc02).writeonly().share("scroll0ylo"); - map(0xfc03, 0xfc03).writeonly().share("scroll0yhi"); - map(0xfc06, 0xfc06).writeonly().share("scroll0xlo"); - map(0xfc07, 0xfc07).writeonly().share("scroll0xhi"); - map(0xfc22, 0xfc22).writeonly().share("scroll1ylo"); - map(0xfc23, 0xfc23).writeonly().share("scroll1yhi"); - map(0xfc26, 0xfc26).writeonly().share("scroll1xlo"); - map(0xfc27, 0xfc27).writeonly().share("scroll1xhi"); - map(0xfc42, 0xfc42).writeonly().share("scroll2ylo"); - map(0xfc43, 0xfc43).writeonly().share("scroll2yhi"); - map(0xfc46, 0xfc46).writeonly().share("scroll2xlo"); - map(0xfc47, 0xfc47).writeonly().share("scroll2xhi"); + map(0xfc02, 0xfc02).writeonly().share(m_scroll0ylo); + map(0xfc03, 0xfc03).writeonly().share(m_scroll0yhi); + map(0xfc06, 0xfc06).writeonly().share(m_scroll0xlo); + map(0xfc07, 0xfc07).writeonly().share(m_scroll0xhi); + map(0xfc22, 0xfc22).writeonly().share(m_scroll1ylo); + map(0xfc23, 0xfc23).writeonly().share(m_scroll1yhi); + map(0xfc26, 0xfc26).writeonly().share(m_scroll1xlo); + map(0xfc27, 0xfc27).writeonly().share(m_scroll1xhi); + map(0xfc42, 0xfc42).writeonly().share(m_scroll2ylo); + map(0xfc43, 0xfc43).writeonly().share(m_scroll2yhi); + map(0xfc46, 0xfc46).writeonly().share(m_scroll2xlo); + map(0xfc47, 0xfc47).writeonly().share(m_scroll2xhi); map(0xfcc0, 0xfcc0).w(m_soundlatch, FUNC(generic_latch_8_device::write)); map(0xfcd0, 0xfcd0).w("watchdog", FUNC(watchdog_timer_device::reset_w)); map(0xfce0, 0xfce0).w(FUNC(wc90_state::bankswitch_w)); @@ -112,10 +110,10 @@ void wc90_state::wc90_map_2(address_map &map) { map(0x0000, 0xbfff).rom(); map(0xc000, 0xcfff).ram(); - map(0xd000, 0xd7ff).ram().share("spriteram"); + map(0xd000, 0xd7ff).ram().share(m_spriteram); map(0xd800, 0xdfff).ram(); map(0xe000, 0xe7ff).ram().w(m_palette, FUNC(palette_device::write8)).share("palette"); - map(0xf000, 0xf7ff).bankr("subbank"); + map(0xf000, 0xf7ff).bankr(m_subbank); map(0xf800, 0xfbff).ram().share("share1"); map(0xfc00, 0xfc00).w(FUNC(wc90_state::bankswitch1_w)); map(0xfc01, 0xfc01).w("watchdog", FUNC(watchdog_timer_device::reset_w)); @@ -341,15 +339,15 @@ GFXDECODE_END void wc90_state::machine_start() { - membank("mainbank")->configure_entries(0, 32, memregion("maincpu")->base() + 0x10000, 0x800); - membank("subbank")->configure_entries(0, 32, memregion("sub")->base() + 0x10000, 0x800); + m_mainbank->configure_entries(0, 32, memregion("maincpu")->base() + 0x10000, 0x800); + m_subbank->configure_entries(0, 32, memregion("sub")->base() + 0x10000, 0x800); } MACHINE_CONFIG_START(wc90_state::wc90) /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", Z80, XTAL(8'000'000)) /* verified on pcb */ + MCFG_DEVICE_ADD(m_maincpu, Z80, XTAL(8'000'000)) /* verified on pcb */ MCFG_DEVICE_PROGRAM_MAP(wc90_map_1) MCFG_DEVICE_VBLANK_INT_DRIVER("screen", wc90_state, irq0_line_hold) @@ -357,7 +355,7 @@ MACHINE_CONFIG_START(wc90_state::wc90) MCFG_DEVICE_PROGRAM_MAP(wc90_map_2) MCFG_DEVICE_VBLANK_INT_DRIVER("screen", wc90_state, irq0_line_hold) - MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(8'000'000)/2) /* verified on pcb */ + MCFG_DEVICE_ADD(m_audiocpu, Z80, XTAL(8'000'000)/2) /* verified on pcb */ MCFG_DEVICE_PROGRAM_MAP(sound_map) /* NMIs are triggered by the main CPU */ @@ -370,19 +368,19 @@ MACHINE_CONFIG_START(wc90_state::wc90) MCFG_SCREEN_SIZE(32*8, 32*8) MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) MCFG_SCREEN_UPDATE_DRIVER(wc90_state, screen_update) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_wc90) - MCFG_PALETTE_ADD("palette", 1024) + MCFG_DEVICE_ADD(m_gfxdecode, GFXDECODE, m_palette, gfx_wc90) + MCFG_PALETTE_ADD(m_palette, 1024) MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) - MCFG_DEVICE_ADD("spritegen", TECMO_SPRITE, 0) + MCFG_DEVICE_ADD(m_sprgen, TECMO_SPRITE, 0) /* sound hardware */ SPEAKER(config, "mono").front_center(); - MCFG_GENERIC_LATCH_8_ADD("soundlatch") + MCFG_GENERIC_LATCH_8_ADD(m_soundlatch) MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) MCFG_DEVICE_ADD("ymsnd", YM2608, XTAL(8'000'000)) /* verified on pcb */ @@ -437,7 +435,6 @@ ROM_START( twcup90 ) ROM_LOAD( "ic82_06.bin", 0x00000, 0x20000, CRC(2fd692ed) SHA1(0273dc39181504320bec0187d074b2f86c821508) ) ROM_END - ROM_START( twcup90a ) ROM_REGION( 0x20000, "maincpu", 0 ) ROM_LOAD( "wc90-1.bin", 0x00000, 0x08000, CRC(d1804e1a) SHA1(eec7374f4d23c89843f38fffff436635adb43b63) ) /* c000-ffff is not used */ @@ -504,6 +501,39 @@ ROM_START( twcup90b ) ROM_LOAD( "ic82_06.bin", 0x00000, 0x20000, CRC(2fd692ed) SHA1(0273dc39181504320bec0187d074b2f86c821508) ) ROM_END +ROM_START( twcup90c ) // 2 PCB set: 6303 A and 6303 B. ic87_01 is very similar to the one in the twcup90a set. + ROM_REGION( 0x20000, "maincpu", 0 ) + ROM_LOAD( "ic87_01.bin", 0x00000, 0x08000, CRC(f588bb33) SHA1(46e90f145befd50be5ce0ffc05b00a034318a330) ) /* sldh, c000-ffff is not used */ + ROM_LOAD( "ic95_02.bin", 0x10000, 0x10000, CRC(847d439c) SHA1(eade31050da9e84feb4406e327d050a7496871b7) ) /* banked at f000-f7ff */ + + ROM_REGION( 0x20000, "sub", 0 ) /* Second CPU */ + ROM_LOAD( "ic67_04.bin", 0x00000, 0x10000, CRC(dc6eaf00) SHA1(d53924070a59eee35dc0e6465702e4f04e61a073) ) /* c000-ffff is not used */ + ROM_LOAD( "ic56_03.bin", 0x10000, 0x10000, CRC(1ac02b3b) SHA1(4f8dc049d404072150342f3c2df04789a73ce244) ) /* banked at f000-f7ff */ + + ROM_REGION( 0x10000, "audiocpu", 0 ) + ROM_LOAD( "ic54_05.bin", 0x00000, 0x10000, CRC(27c348b3) SHA1(cf19ff4ae4f323ae3e5a905249b7af8ae342202a) ) + + ROM_REGION( 0x010000, "gfx1", 0 ) + ROM_LOAD( "ic85_07v.bin", 0x00000, 0x10000, CRC(c5219426) SHA1(95e21fcd7de7d418ec287ae7087f6244c6bce5a8) ) /* characters */ + + ROM_REGION( 0x040000, "gfx2", 0 ) + ROM_LOAD( "ic86_08v.bin", 0x00000, 0x20000, CRC(8fa1a1ff) SHA1(ce624617ac8c8b54e41294cf5dca7a09c91f53ba) ) /* tiles #1 */ + ROM_LOAD( "ic90_09v.bin", 0x20000, 0x20000, CRC(99f8841c) SHA1(1969b4d78ca00924a7550826e1c4f4fa0588ef02) ) /* tiles #2 */ + + ROM_REGION( 0x040000, "gfx3", 0 ) + ROM_LOAD( "ic87_10v.bin", 0x00000, 0x20000, CRC(8232093d) SHA1(59bf9c9a858b47326cf0c64b1ee6ac727a15a20b) ) /* tiles #3 */ + ROM_LOAD( "ic91_11v.bin", 0x20000, 0x20000, CRC(188d3789) SHA1(35654a99a20735bae09b32f74255f8132dee9af2) ) /* tiles #4 */ + + ROM_REGION( 0x080000, "gfx4", 0 ) + ROM_LOAD( "ic50_12v.bin", 0x00000, 0x20000, CRC(da1fe922) SHA1(5184053c2b7dd2bf1cd2e9f783686f2c0db7e47b) ) /* sprites */ + ROM_LOAD( "ic54_13v.bin", 0x20000, 0x20000, CRC(9ad03c2c) SHA1(1c1947f9b51a58002e9992fc7c0c1a1c59b4d740) ) /* sprites */ + ROM_LOAD( "ic60_14v.bin", 0x40000, 0x20000, CRC(499dfb1b) SHA1(ac67985d36fea18c82a4ea00019d9e6e4bcb5d0d) ) /* sprites */ + ROM_LOAD( "ic65_15v.bin", 0x60000, 0x20000, CRC(d8ea5c81) SHA1(ccb3f7d565b1c1b8e874a2df91cda40dde2962ed) ) /* sprites */ + + ROM_REGION( 0x20000, "ymsnd", 0 ) /* 64k for ADPCM samples */ + ROM_LOAD( "ic82_06.bin", 0x00000, 0x20000, CRC(2fd692ed) SHA1(0273dc39181504320bec0187d074b2f86c821508) ) +ROM_END + ROM_START( twcup90t ) ROM_REGION( 0x20000, "maincpu", 0 ) ROM_LOAD( "wc90a-1.bin", 0x00000, 0x08000, CRC(b6f51a68) SHA1(e0263dee35bf99cb4288a1df825bbbca17c85d36) ) /* c000-ffff is not used */ @@ -568,9 +598,10 @@ ROM_START( pac90 ) ROM_END -GAME( 1989, twcup90, 0, wc90, wc90, wc90_state, empty_init, ROT0, "Tecmo", "Tecmo World Cup '90 (World)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) +GAME( 1989, twcup90, 0, wc90, wc90, wc90_state, empty_init, ROT0, "Tecmo", "Tecmo World Cup '90 (World set 1)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) GAME( 1989, twcup90a, twcup90, wc90, wc90, wc90_state, empty_init, ROT0, "Tecmo", "Tecmo World Cup '90 (Euro set 1)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) GAME( 1989, twcup90b, twcup90, wc90, wc90, wc90_state, empty_init, ROT0, "Tecmo", "Tecmo World Cup '90 (Euro set 2)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) +GAME( 1989, twcup90c, twcup90, wc90, wc90, wc90_state, empty_init, ROT0, "Tecmo", "Tecmo World Cup '90 (Euro set 3)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) GAME( 1989, twcup90t, twcup90, wc90t, wc90, wc90_state, empty_init, ROT0, "Tecmo", "Tecmo World Cup '90 (trackball set 1)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) GAME( 199?, pac90, puckman, pac90, pac90, wc90_state, empty_init, ROT90, "bootleg (Macro)", "Pac-Man (bootleg on World Cup '90 hardware)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) // made by Mike Coates etc. diff --git a/src/mame/includes/wc90.h b/src/mame/includes/wc90.h index 16fbb5fc18b..16588b3cb48 100644 --- a/src/mame/includes/wc90.h +++ b/src/mame/includes/wc90.h @@ -31,7 +31,9 @@ public: m_scroll1yhi(*this, "scroll1yhi"), m_scroll2ylo(*this, "scroll2ylo"), m_scroll2yhi(*this, "scroll2yhi"), - m_spriteram(*this, "spriteram") + m_spriteram(*this, "spriteram"), + m_mainbank(*this, "mainbank"), + m_subbank(*this, "subbank") { } void wc90t(machine_config &config); @@ -63,6 +65,9 @@ private: required_shared_ptr m_scroll2yhi; required_shared_ptr m_spriteram; + required_memory_bank m_mainbank; + required_memory_bank m_subbank; + tilemap_t *m_tx_tilemap; tilemap_t *m_fg_tilemap; tilemap_t *m_bg_tilemap; diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 6c1dd1042ed..c999b3f1d2e 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -38495,6 +38495,7 @@ pac90 // bootleg twcup90 // (c) 1989 Tecmo twcup90a // (c) 1989 Tecmo twcup90b // (c) 1989 Tecmo +twcup90c // (c) 1989 Tecmo twcup90t // (c) 1989 Tecmo @source:wc90b.cpp -- cgit v1.2.3