mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
New NOT WORKING game added
------------------ Submarine (Midway) [John Robertson, hap] -- WIP
This commit is contained in:
parent
d43eccd0d2
commit
2538d2488a
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -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
|
||||
|
@ -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
|
||||
|
106
src/mame/drivers/mwsub.c
Normal file
106
src/mame/drivers/mwsub.c
Normal file
@ -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<cpu_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 )
|
13
src/mame/layout/submar.lay
Normal file
13
src/mame/layout/submar.lay
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
<element name="digit" defstate="0">
|
||||
<led7seg>
|
||||
<color red="1.0" green="0.3" blue="0.0" />
|
||||
</led7seg>
|
||||
</element>
|
||||
|
||||
<view name="Simple LEDs">
|
||||
<bounds left="0" right="256" top="0" bottom="256" />
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
@ -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?]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user