Split stuntcyc into its own netlist, (nw)

This commit is contained in:
therealmogminer@gmail.com 2016-12-23 04:51:45 +01:00
parent e31027ba22
commit ab0525cc27
5 changed files with 56 additions and 3 deletions

View File

@ -1096,6 +1096,8 @@ files {
MAME_DIR .. "src/mame/machine/nl_pongd.h",
MAME_DIR .. "src/mame/machine/nl_breakout.cpp",
MAME_DIR .. "src/mame/machine/nl_breakout.h",
MAME_DIR .. "src/mame/machine/nl_stuntcyc.cpp",
MAME_DIR .. "src/mame/machine/nl_stuntcyc.h",
MAME_DIR .. "src/mame/drivers/poolshrk.cpp",
MAME_DIR .. "src/mame/includes/poolshrk.h",
MAME_DIR .. "src/mame/audio/poolshrk.cpp",

View File

@ -115,6 +115,10 @@ files{
MAME_DIR .. "src/mame/machine/nl_hazelvid.cpp",
MAME_DIR .. "src/mame/machine/nl_hazelvid.h",
MAME_DIR .. "src/mame/drivers/atarittl.cpp",
MAME_DIR .. "src/mame/machine/nl_stuntcyc.cpp",
MAME_DIR .. "src/mame/machine/nl_stuntcyc.h",
MAME_DIR .. "src/mame/drivers/1942.cpp",
MAME_DIR .. "src/mame/includes/1942.h",
MAME_DIR .. "src/mame/video/1942.cpp",

View File

@ -1,5 +1,5 @@
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli, Scott Stone
// copyright-holders:Fabio Priuli, Scott Stone, Couriersud
/***************************************************************************
Atari / Kee Games Driver - Discrete Games made in the 1970's
@ -73,6 +73,7 @@
#include "emu.h"
#include "machine/netlist.h"
#include "machine/nl_stuntcyc.h"
#include "netlist/devices/net_lib.h"
#include "video/fixfreq.h"
@ -149,7 +150,6 @@ void atarikee_state::video_start()
static MACHINE_CONFIG_START( atarikee, atarikee_state )
/* basic machine hardware */
MCFG_DEVICE_ADD("maincpu", NETLIST_CPU, NETLIST_CLOCK)
MCFG_NETLIST_SETUP(atarikee)
@ -164,6 +164,22 @@ static MACHINE_CONFIG_START( atarikee, atarikee_state )
MACHINE_CONFIG_END
static MACHINE_CONFIG_START( stuntcyc, atarikee_state )
/* basic machine hardware */
MCFG_DEVICE_ADD("maincpu", NETLIST_CPU, NETLIST_CLOCK)
MCFG_NETLIST_SETUP(stuntcyc)
/* video hardware */
MCFG_FIXFREQ_ADD("fixfreq", "screen")
MCFG_FIXFREQ_MONITOR_CLOCK(MASTER_CLOCK)
MCFG_FIXFREQ_HORZ_PARAMS(H_TOTAL-67,H_TOTAL-40,H_TOTAL-8,H_TOTAL)
MCFG_FIXFREQ_VERT_PARAMS(V_TOTAL-22,V_TOTAL-19,V_TOTAL-12,V_TOTAL)
MCFG_FIXFREQ_FIELDCOUNT(1)
MCFG_FIXFREQ_SYNC_THRESHOLD(0.30)
MACHINE_CONFIG_END
/***************************************************************************
Game driver(s)
@ -452,7 +468,7 @@ GAME(1975, jetfighta, jetfight, atarikee, 0, driver_device, 0, ROT0, "Ata
GAME(1976, outlaw, 0, atarikee, 0, driver_device, 0, ROT0, "Atari", "Outlaw [TTL]", MACHINE_IS_SKELETON)
GAME(1975, sharkjaw, 0, atarikee, 0, driver_device, 0, ROT0, "Atari/Horror Games", "Shark JAWS [TTL]", MACHINE_IS_SKELETON)
GAME(1975, steeplec, 0, atarikee, 0, driver_device, 0, ROT0, "Atari", "Steeplechase [TTL]", MACHINE_IS_SKELETON)
GAME(1976, stuntcyc, 0, atarikee, 0, driver_device, 0, ROT0, "Atari", "Stunt Cycle [TTL]", MACHINE_IS_SKELETON)
GAME(1976, stuntcyc, 0, stuntcyc, 0, driver_device, 0, ROT0, "Atari", "Stunt Cycle [TTL]", MACHINE_IS_SKELETON)
GAME(1974, tank, 0, atarikee, 0, driver_device, 0, ROT0, "Atari/Kee", "Tank/Tank Cocktail [TTL]", MACHINE_IS_SKELETON)
GAME(1975, tankii, 0, atarikee, 0, driver_device, 0, ROT0, "Atari/Kee", "Tank II [TTL]", MACHINE_IS_SKELETON)

View File

@ -0,0 +1,27 @@
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
/***************************************************************************
Netlist (stuntcyc) included from atarittl.cpp
***************************************************************************/
#include "netlist/devices/net_lib.h"
NETLIST_START(stuntcyc)
SOLVER(Solver, 48000)
PARAM(Solver.PARALLEL, 0) // Don't do parallel solvers
PARAM(Solver.ACCURACY, 1e-4) // works and is sufficient
PARAM(NETLIST.USE_DEACTIVATE, 1)
ANALOG_INPUT(V5, 5)
TTL_INPUT(high, 1)
TTL_INPUT(low, 0)
MAINCLOCK(main_clk, 14318181.8)
ALIAS(Y1, main_clk)
NETLIST_END()

View File

@ -0,0 +1,4 @@
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
NETLIST_EXTERNAL(stuntcyc)