From 2538d2488a3762311ddf3acf80cb6148feeb8bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Fri, 6 Dec 2013 21:21:07 +0000 Subject: [PATCH] New NOT WORKING game added ------------------ Submarine (Midway) [John Robertson, hap] -- WIP --- .gitattributes | 2 + src/mame/drivers/mw18w.c | 2 +- src/mame/drivers/mwsub.c | 106 +++++++++++++++++++++++++++++++++++++ src/mame/layout/submar.lay | 13 +++++ src/mame/mame.lst | 1 + src/mame/mame.mak | 3 ++ 6 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 src/mame/drivers/mwsub.c create mode 100644 src/mame/layout/submar.lay diff --git a/.gitattributes b/.gitattributes index f8735ccebf6..95d1194bb0f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4129,6 +4129,7 @@ src/mame/drivers/mustache.c svneol=native#text/plain src/mame/drivers/mw18w.c svneol=native#text/plain src/mame/drivers/mw8080bw.c svneol=native#text/plain src/mame/drivers/mwarr.c svneol=native#text/plain +src/mame/drivers/mwsub.c svneol=native#text/plain src/mame/drivers/mystston.c svneol=native#text/plain src/mame/drivers/mystwarr.c svneol=native#text/plain src/mame/drivers/n8080.c svneol=native#text/plain @@ -5610,6 +5611,7 @@ src/mame/layout/starcas.lay svneol=native#text/plain src/mame/layout/stepstag.lay svneol=native#text/plain src/mame/layout/stisub.lay svneol=native#text/plain src/mame/layout/stocker.lay svneol=native#text/plain +src/mame/layout/submar.lay svneol=native#text/plain src/mame/layout/subroc3d.lay svneol=native#text/plain src/mame/layout/sundance.lay svneol=native#text/plain src/mame/layout/superbug.lay svneol=native#text/plain diff --git a/src/mame/drivers/mw18w.c b/src/mame/drivers/mw18w.c index 875c28135e9..a950f4fe402 100644 --- a/src/mame/drivers/mw18w.c +++ b/src/mame/drivers/mw18w.c @@ -1,6 +1,6 @@ // license:BSD-3-Clause // copyright-holders:hap -/* Midway 18 Wheeler hardware, game number 653 +/* Midway's 18 Wheeler hardware, game number 653 driver todo: - discrete sound diff --git a/src/mame/drivers/mwsub.c b/src/mame/drivers/mwsub.c new file mode 100644 index 00000000000..76e80f3588e --- /dev/null +++ b/src/mame/drivers/mwsub.c @@ -0,0 +1,106 @@ +// license:BSD-3-Clause +// copyright-holders:hap +/* Midway's Submarine hardware, game number 760 + + +*/ + +#include "emu.h" +#include "cpu/z80/z80.h" + +#include "submar.lh" + + +class submar_state : public driver_device +{ +public: + submar_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu") + { } + + required_device m_maincpu; +}; + + + + + + +static ADDRESS_MAP_START( submar_map, AS_PROGRAM, 8, submar_state ) + AM_RANGE(0x0000, 0x1fff) AM_ROM + AM_RANGE(0x2000, 0x207f) AM_RAM +ADDRESS_MAP_END + +static ADDRESS_MAP_START( submar_portmap, AS_IO, 8, submar_state ) + ADDRESS_MAP_UNMAP_HIGH + ADDRESS_MAP_GLOBAL_MASK(0xff) +ADDRESS_MAP_END + + + +static INPUT_PORTS_START( submar ) + PORT_START("IN0") + PORT_DIPNAME( 0x01, 0x01, "01" ) + PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x02, 0x02, "02" ) + PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x04, 0x04, "04" ) + PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x08, 0x08, "08" ) + PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x10, 0x10, "10" ) + PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x20, 0x20, "20" ) + PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x40, 0x40, "40" ) + PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x80, 0x80, "80" ) + PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + + PORT_START("IN1") + 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 + + + + +static MACHINE_CONFIG_START( submar, submar_state ) + + /* basic machine hardware */ + MCFG_CPU_ADD("maincpu", Z80, XTAL_19_968MHz/8) + MCFG_CPU_PERIODIC_INT_DRIVER(submar_state, irq0_line_hold, 960.516) // 555 IC - where is irqack? + MCFG_CPU_PROGRAM_MAP(submar_map) + MCFG_CPU_IO_MAP(submar_portmap) + + /* no video! */ + + /* sound hardware */ + //... +MACHINE_CONFIG_END + + +ROM_START( submar ) + ROM_REGION( 0x10000, "maincpu", 0 ) + ROM_LOAD( "sub.a1", 0x0000, 0x0800, CRC(bcef5db4) SHA1(8ae5099672fbdb7bcdc617e1f8cbc5435fbb738a) ) + ROM_LOAD( "sub.a2", 0x0800, 0x0800, CRC(f5780dd0) SHA1(f775dd6f64a730a2fb6c9baf5787698434150bc5) ) +ROM_END + + + +GAMEL( 1979, submar, 0, submar, submar, driver_device, 0, ROT0, "Midway", "Submarine (Midway)", GAME_NO_SOUND | GAME_NOT_WORKING | GAME_MECHANICAL, layout_submar ) diff --git a/src/mame/layout/submar.lay b/src/mame/layout/submar.lay new file mode 100644 index 00000000000..e5d973c9308 --- /dev/null +++ b/src/mame/layout/submar.lay @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 3481187aee3..6d007f8332a 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -1531,6 +1531,7 @@ sflush // (c)1979 Taito 18w // 653 (c) 1979 Midway 18w2 // 653 (c) 1979 Midway sspeedr // 1979 Midway +submar // 760 (c) 1979 Midway // Meadows S2650 games lazercmd // [1976?] diff --git a/src/mame/mame.mak b/src/mame/mame.mak index 81dc120936d..daa881f7510 100644 --- a/src/mame/mame.mak +++ b/src/mame/mame.mak @@ -1306,6 +1306,7 @@ $(MAMEOBJ)/midway.a: \ $(DRIVERS)/midyunit.o $(MACHINE)/midyunit.o $(VIDEO)/midyunit.o \ $(DRIVERS)/midzeus.o $(VIDEO)/midzeus.o $(VIDEO)/midzeus2.o \ $(DRIVERS)/mw18w.o \ + $(DRIVERS)/mwsub.o \ $(DRIVERS)/omegrace.o \ $(DRIVERS)/pinball2k.o \ $(DRIVERS)/seattle.o \ @@ -2509,6 +2510,8 @@ $(DRIVERS)/mw8080bw.o: $(LAYOUT)/280zzzap.lh \ $(LAYOUT)/spacwalk.lh \ $(LAYOUT)/spcenctr.lh +$(DRIVERS)/mwsub.o: $(LAYOUT)/submar.lh + $(DRIVERS)/meadows.o: $(LAYOUT)/deadeye.lh \ $(LAYOUT)/gypsyjug.lh \ $(LAYOUT)/minferno.lh