mirror of
https://github.com/holub/mame
synced 2025-04-25 01:40:16 +03:00
Split stuntcyc into its own netlist, (nw)
This commit is contained in:
parent
e31027ba22
commit
ab0525cc27
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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)
|
||||
|
||||
|
27
src/mame/machine/nl_stuntcyc.cpp
Normal file
27
src/mame/machine/nl_stuntcyc.cpp
Normal 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()
|
4
src/mame/machine/nl_stuntcyc.h
Normal file
4
src/mame/machine/nl_stuntcyc.h
Normal file
@ -0,0 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
|
||||
NETLIST_EXTERNAL(stuntcyc)
|
Loading…
Reference in New Issue
Block a user