From 6cc10fd20d2d9177284a8f331d15fd5bbe0eec4e Mon Sep 17 00:00:00 2001 From: MetalliC <0vetal0@gmail.com> Date: Tue, 28 Jul 2015 14:32:25 +0300 Subject: [PATCH] dumped Sega 838-13683 and 837-13551 JVS I/O MCU firmwares [Soyandroid] --- src/mame/machine/jvs13551.c | 20 +++++++++++++++++++- src/mame/machine/jvs13551.h | 2 ++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/mame/machine/jvs13551.c b/src/mame/machine/jvs13551.c index 69e0f62c655..40b669e235e 100644 --- a/src/mame/machine/jvs13551.c +++ b/src/mame/machine/jvs13551.c @@ -22,6 +22,24 @@ static INPUT_PORTS_START(sega_837_13551_coins) PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_COIN2) PORT_WRITE_LINE_DEVICE_MEMBER(DEVICE_SELF, sega_837_13551, jvs13551_coin_2_w) INPUT_PORTS_END +ROM_START( jvs13551 ) + // TMP90PH44N firmwares + ROM_REGION( 0x8000, "jvs13551", ROMREGION_ERASE ) + // Sega 838-13683-93 + ROM_LOAD( "sp5001.bin", 0x0000, 0x8000, CRC(2f17e21a) SHA1(ac227ef3ca52ef17321bd60e435dba147645d8b8)) + // Sega 838-13683-93 Rev.B + ROM_LOAD( "sp5001-b.bin", 0x0000, 0x8000, CRC(121693cd) SHA1(c9834aca671aff5e283ac708788c2a0f4a5bdecc)) + // Sega 838-13683-02 + ROM_LOAD( "sp5002-a.bin", 0x0000, 0x8000, CRC(a088df8c) SHA1(8237e9b18b8367d3f5b99b8f29c528a55c2e0fbf)) + // Sega 837-13551-92 0007 Type1 + ROM_LOAD( "315-6215.bin", 0x0000, 0x8000, CRC(d7c97e40) SHA1(b1ae8db332f869c4fdbbae15967baeca0bc7f57d)) +ROM_END + +const rom_entry *sega_837_13551::device_rom_region() const +{ + return ROM_NAME(jvs13551); +} + void sega_837_13551::static_set_port_tag(device_t &device, int port, const char *tag) { sega_837_13551 &ctrl = downcast(device); @@ -33,7 +51,7 @@ ioport_constructor sega_837_13551::device_input_ports() const return INPUT_PORTS_NAME(sega_837_13551_coins); } -sega_837_13551::sega_837_13551(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : jvs_device(mconfig, SEGA_837_13551, "Sega 837-13551 I/O Board", tag, owner, clock, "sega_837_13551", __FILE__) +sega_837_13551::sega_837_13551(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : jvs_device(mconfig, SEGA_837_13551, "Sega 837-13551 I/O Board", tag, owner, clock, "jvs13551", __FILE__) { memset(port_tag, 0, sizeof(port_tag)); } diff --git a/src/mame/machine/jvs13551.h b/src/mame/machine/jvs13551.h index 69c79fee4e9..98f095e3c1c 100644 --- a/src/mame/machine/jvs13551.h +++ b/src/mame/machine/jvs13551.h @@ -29,6 +29,8 @@ public: sega_837_13551(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); static void static_set_port_tag(device_t &device, int port, const char *tag); + virtual const rom_entry *device_rom_region() const; + DECLARE_WRITE_LINE_MEMBER(jvs13551_coin_1_w); DECLARE_WRITE_LINE_MEMBER(jvs13551_coin_2_w); void inc_coin(int coin);