From 6d1bded45c861dccfa630fdd6989f128e0a57243 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Fri, 30 Jun 2023 06:14:54 +0200 Subject: New systems marked not working ------------------------------ Quick & Crash (V2.200) [CoolFox, DragonMinded, The Dumping Union] --- src/mame/mame.lst | 3 ++ src/mame/namco/quickncrash.cpp | 114 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 src/mame/namco/quickncrash.cpp diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 3df61c1d00b..821d29dc388 100755 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -32848,6 +32848,9 @@ topracer // bootleg topracera // bootleg topracern // bootleg +@source:namco/quickncrash.cpp +qncrash + @source:namco/rallyx.cpp commsega // (c) 1983 Sega cottong // bootleg diff --git a/src/mame/namco/quickncrash.cpp b/src/mame/namco/quickncrash.cpp new file mode 100644 index 00000000000..23f5b7f12c7 --- /dev/null +++ b/src/mame/namco/quickncrash.cpp @@ -0,0 +1,114 @@ +// license:BSD-3-Clause +// copyright-holders: + +/* + +Quick & Crash by Namco (1999) + +Hardware notes: +Main PCB has both 'Namco TY294-V-0 1331960101' and 'Tamura DNP0674A' +- KL5C80A12CFP +- Oki M9810 +- NEC D71055C-10 +- 93C66N +- 6264BLP10L +- 20.000 MHz XTAL +- lots of connectors +*/ + +#include "emu.h" + +#include "cpu/z80/kl5c80a12.h" +#include "machine/eepromser.h" +#include "machine/i8255.h" +#include "sound/okim9810.h" + +#include "speaker.h" + + +namespace { + +class qncrash_state : public driver_device +{ +public: + qncrash_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu") + { } + + void qncrash(machine_config &config) ATTR_COLD; + +private: + required_device m_maincpu; + + void program_map(address_map &map) ATTR_COLD; +}; + + +void qncrash_state::program_map(address_map &map) +{ + map(0x00000, 0x0ffff).rom().region("maincpu", 0x0000); + map(0xff800, 0xffdff).ram(); // 0xffe00 - 0xfffff is internal RAM +} + + +static INPUT_PORTS_START( qncrash ) // no DIPs on PCB + PORT_START("IN0") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) +INPUT_PORTS_END + + +void qncrash_state::qncrash(machine_config &config) +{ + // basic machine hardware + KL5C80A12(config, m_maincpu, 20_MHz_XTAL); + m_maincpu->set_addrmap(AS_PROGRAM, &qncrash_state::program_map); + m_maincpu->in_p0_callback().set_log("p0 in"); + m_maincpu->out_p0_callback().set_log("p0 out"); + m_maincpu->in_p1_callback().set_log("p1 in"); + m_maincpu->out_p1_callback().set_log("p1 out"); + m_maincpu->in_p2_callback().set_log("p2 in"); + m_maincpu->out_p2_callback().set_log("p2 out"); + m_maincpu->in_p3_callback().set_log("p3 in"); + m_maincpu->out_p3_callback().set_log("p3 out"); + + I8255(config, "ppi"); // NEC D71055C + + EEPROM_93C66_8BIT(config, "eeprom"); + + // video hardware + // TODO: 2 LED screens (one for shots left / level infos, one for time left) + + // sound hardware + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); + + okim9810_device &oki(OKIM9810(config, "oki", 4'096'000)); // no evident XTAL on PCB + oki.add_route(0, "lspeaker", 1.00); + oki.add_route(1, "rspeaker", 1.00); +} + + +ROM_START( qncrash ) + ROM_REGION( 0x10000, "maincpu", 0 ) + ROM_LOAD( "qc1-mpr0c.ic3", 0x00000, 0x10000, CRC(8e3f605d) SHA1(69a0da6286e250b92e47b66c9423bc5c793b350b) ) + + ROM_REGION( 0x800000, "oki", 0 ) + ROM_LOAD( "qc1-sound00.ic12", 0x000000, 0x400000, CRC(d72713d2) SHA1(556a0be2bb08fc9b4a2476b0ce8a23aa66858809) ) + ROM_LOAD( "qc1-sound01.ic13", 0x400000, 0x400000, CRC(70e472a1) SHA1(df06270cede1d00e2ec231276e5e5466ab549794) ) // 1xxxxxxxxxxxxxxxxxxxxx = 0xFF + + ROM_REGION(0x200, "eeprom", 0) + ROM_LOAD( "93c66n.ic5", 0x000, 0x200, CRC(1ba66a58) SHA1(adb7f1685cf81585ed30613adc39e9091e63af84) ) +ROM_END + +} // anonymous namespace + + +GAME( 1999, qncrash, 0, qncrash, qncrash, qncrash_state, empty_init, ROT0, "Namco", "Quick & Crash (V2.200)", MACHINE_IS_SKELETON_MECHANICAL ) // version listed at 0xa97a in program ROM -- cgit v1.2.3