diff --git a/scripts/target/mame/arcade.lua b/scripts/target/mame/arcade.lua index 14acc5ef40a..7d0902de2bd 100644 --- a/scripts/target/mame/arcade.lua +++ b/scripts/target/mame/arcade.lua @@ -4651,6 +4651,7 @@ files { MAME_DIR .. "src/mame/includes/norautp.h", MAME_DIR .. "src/mame/audio/norautp.cpp", MAME_DIR .. "src/mame/drivers/notechan.cpp", + MAME_DIR .. "src/mame/drivers/nsg6809.cpp", MAME_DIR .. "src/mame/drivers/nsmpoker.cpp", MAME_DIR .. "src/mame/drivers/oneshot.cpp", MAME_DIR .. "src/mame/includes/oneshot.h", diff --git a/src/mame/arcade.flt b/src/mame/arcade.flt index 8d4b6247395..453f87a2b92 100644 --- a/src/mame/arcade.flt +++ b/src/mame/arcade.flt @@ -830,6 +830,7 @@ nmk16.cpp norautp.cpp notechan.cpp nova2001.cpp +nsg6809.cpp nsm.cpp nsmpoker.cpp nss.cpp diff --git a/src/mame/drivers/nsg6809.cpp b/src/mame/drivers/nsg6809.cpp new file mode 100644 index 00000000000..b489c604a37 --- /dev/null +++ b/src/mame/drivers/nsg6809.cpp @@ -0,0 +1,89 @@ +// license:BSD-3-Clause +// copyright-holders:AJR +/*************************************************************************** + + Skeleton driver for National Sports Games' 6809-based mechanical games: + + * Pitch Hitter + * Super Shot (undumped) + + Partial memory map for "Universal Game PCB" in Super Shot schematics: + + 2K SRAM 8K SRAM + JP5-A JP6-B JP7-B JP5-B JP6-A JP7-A + + *AUX3 $6000-$7FFF $6000-$7FFF + *AUX2 $2000-$3FFF $2000-$27FF + *AUX1 $4000-$5FFF $4000-$5FFF + *ASIC $1000-$17FF $3000-$37FF + *VIA $0800-$0FFF $2800-$2FFF + *SRAM $0000-$07FF $0000-$1FFF + DEADMAN $1E00-$1FFF $3E00-$3FFF + *IN-D $1E00-$1FFF $3E00-$3FFF + *OUT-C $1C00-$1DFF $3C00-$3DFF + *IN-C $1C00-$1DFF $3C00-$3DFF + *OUT-B $1A00-$1BFF $3A00-$3BFF + *IN-B $1A00-$1BFF $3A00-$3BFF + *OUT-A $1800-$19FF $3800-$39FF + *IN-A $1800-$19FF $3800-$39FF + +***************************************************************************/ + +#include "emu.h" +#include "cpu/m6809/m6809.h" +#include "machine/6522via.h" +#include "machine/mos6551.h" +#include "machine/watchdog.h" + + +class nsg6809_state : public driver_device +{ +public: + nsg6809_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( main_map, AS_PROGRAM, 8, nsg6809_state ) + AM_RANGE(0x0000, 0x1fff) AM_RAM + AM_RANGE(0x2800, 0x280f) AM_DEVREADWRITE("via", via6522_device, read, write) + AM_RANGE(0x3000, 0x3003) AM_DEVREADWRITE("acia", mos6551_device, read, write) + AM_RANGE(0x3e00, 0x3e00) AM_DEVWRITE("deadman", watchdog_timer_device, reset_w) + AM_RANGE(0x8000, 0xffff) AM_ROM AM_REGION("maincpu", 0) +ADDRESS_MAP_END + +static INPUT_PORTS_START( pitchhit ) +INPUT_PORTS_END + +static MACHINE_CONFIG_START( pitchhit ) + MCFG_CPU_ADD("maincpu", M6809, XTAL_4MHz / 4) + MCFG_CPU_PROGRAM_MAP(main_map) + + MCFG_DEVICE_ADD("via", VIA6522, XTAL_4MHz / 4) + + MCFG_DEVICE_ADD("acia", MOS6551, 0) + MCFG_MOS6551_XTAL(XTAL_1_8432MHz) + + MCFG_WATCHDOG_ADD("deadman") +MACHINE_CONFIG_END + + +/* + +Pitch Hitter Eprom 27c256 by National Sports Games (aka Skeeball) +location U-14 + +IC label "PH101C" and "CK# $A790" + +*/ + +ROM_START( pitchhit ) + ROM_REGION( 0x8000, "maincpu", 0 ) + ROM_LOAD( "PH101C__CK_A790.U14", 0x0000, 0x8000, CRC(1d306ab7) SHA1(13faf7c6dca8e5482672b2d09a99616896c4ae55) ) +ROM_END + + +GAME(1993, pitchhit, 0, pitchhit, pitchhit, nsg6809_state, 0, ROT0, "National Sports Games", "Pitch Hitter - Baseball Challenge", MACHINE_IS_SKELETON_MECHANICAL ) diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 485c5582acc..11c8bde3372 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -29935,6 +29935,9 @@ diablo68 // nocto // npresto // +@source:nsg6809.cpp +pitchhit // + @source:nsm.cpp firebird //