From 4cbb6f0209455e3e32c8bea2c7ad7594c14a6b00 Mon Sep 17 00:00:00 2001 From: Joakim Larsson Edstrom Date: Fri, 18 Nov 2016 12:58:45 +0100 Subject: [PATCH] New skeleton driver: ACI Destiny Prodigy chess computer --- scripts/target/mame/mess.lua | 5 ++++ src/mame/drivers/prodigy.cpp | 50 ++++++++++++++++++++++++++++++++++++ src/mame/mame.lst | 3 +++ src/mame/mess.flt | 1 + 4 files changed, 59 insertions(+) create mode 100644 src/mame/drivers/prodigy.cpp diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua index 3ae146c3711..5e9c6203fff 100644 --- a/scripts/target/mame/mess.lua +++ b/scripts/target/mame/mess.lua @@ -2465,6 +2465,11 @@ files { MAME_DIR .. "src/mame/video/poly88.cpp", } +createMESSProjects(_target, _subtarget, "prodigy") +files { + MAME_DIR .. "src/mame/drivers/prodigy.cpp", +} + createMESSProjects(_target, _subtarget, "psion") files { MAME_DIR .. "src/mame/drivers/psion.cpp", diff --git a/src/mame/drivers/prodigy.cpp b/src/mame/drivers/prodigy.cpp new file mode 100644 index 00000000000..0ce8f2f4313 --- /dev/null +++ b/src/mame/drivers/prodigy.cpp @@ -0,0 +1,50 @@ +// license:BSD-3-Clause +// copyright-holders:Joakim Larsson Edstrom +/****************************************************************************** + + ACI Prodigy chess computer driver + + TODO: Everything + +******************************************************************************/ + +#include "emu.h" +#include "cpu/m6502/m6502.h" +#include "machine/6522via.h" + +class prodigy_state : public driver_device +{ +public: + prodigy_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag) + , m_maincpu(*this, "maincpu") + , m_via(*this, "via") + { } +private: + required_device m_maincpu; + required_device m_via; +}; + +static ADDRESS_MAP_START( maincpu_map, AS_PROGRAM, 8, prodigy_state ) + AM_RANGE(0x0000, 0x07ff) AM_RAM + AM_RANGE(0x2000, 0x200f) AM_DEVREADWRITE("via", via6522_device, read, write) + AM_RANGE(0x6000, 0x7fff) AM_ROM AM_REGION("roms", 0x0000) AM_MIRROR(0x8000) +ADDRESS_MAP_END + +static INPUT_PORTS_START( prodigy ) +INPUT_PORTS_END + +static MACHINE_CONFIG_START( prodigy, prodigy_state ) + /* basic machine hardware */ + MCFG_CPU_ADD("maincpu", M6502, XTAL_2MHz) + MCFG_CPU_PROGRAM_MAP(maincpu_map) + MCFG_DEVICE_ADD("via", VIA6522, XTAL_2MHz) +MACHINE_CONFIG_END + +ROM_START(prodigy) + ROM_REGION(0x2000, "roms", 0) + ROM_LOAD("0x2000.bin", 0x0000, 0x02000, CRC(8d60345a) SHA1(fff18ff12e1b1be91f8eac1178605a682564eff2)) +ROM_END + +/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT, COMPANY, FULLNAME, FLAGS */ +CONS( 1981, prodigy, 0, 0, prodigy, prodigy, driver_device, 0, "Applied Concepts Inc", "ACI Destiny Prodigy", MACHINE_IS_SKELETON) diff --git a/src/mame/mame.lst b/src/mame/mame.lst index f52511d4b29..52ac69775f7 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -31120,6 +31120,9 @@ pr_whlft // Wheel Of Fortune (Project) pr_wldkn // Wild Kings (Project) pr_wnstk // Winning Streak (Coinworld) +@source:prodigy.cpp +prodigy // ACI Destiny Prodigy, 1981 + @source:prof180x.cpp prof180x // prof181x // diff --git a/src/mame/mess.flt b/src/mame/mess.flt index 1afce31d347..36b7afbdd87 100644 --- a/src/mame/mess.flt +++ b/src/mame/mess.flt @@ -477,6 +477,7 @@ pp01.cpp prestige.cpp primo.cpp pro80.cpp +prodigy.cpp prof180x.cpp prof80.cpp prophet600.cpp