summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/daryde.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/daryde.cpp')
-rw-r--r--src/mame/drivers/daryde.cpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/mame/drivers/daryde.cpp b/src/mame/drivers/daryde.cpp
new file mode 100644
index 00000000000..c5d7a21e099
--- /dev/null
+++ b/src/mame/drivers/daryde.cpp
@@ -0,0 +1,62 @@
+// license:BSD-3-Clause
+// copyright-holders:AJR
+/*******************************************************************************
+
+ Skeleton driver for Daryde Panther Darts.
+
+*******************************************************************************/
+
+#include "emu.h"
+#include "cpu/z180/z180.h"
+#include "machine/timekpr.h"
+
+class daryde_state : public driver_device
+{
+public:
+ daryde_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag)
+ {
+ }
+
+ void pandart(machine_config &config);
+
+private:
+ void mem_map(address_map &map);
+ void io_map(address_map &map);
+};
+
+void daryde_state::mem_map(address_map &map)
+{
+ map(0x00000, 0x7ffff).rom().region("program", 0);
+ map(0xef000, 0xef005).unmapw();
+ map(0xf0000, 0xf1fff).rw("timekpr", FUNC(mk48t08_device::read), FUNC(mk48t08_device::write));
+}
+
+void daryde_state::io_map(address_map &map)
+{
+ map(0x0000, 0x00ff).noprw();
+ map(0x4000, 0x4000).unmapr();
+ map(0xc000, 0xc000).unmaprw();
+}
+
+static INPUT_PORTS_START(pandart)
+INPUT_PORTS_END
+
+void daryde_state::pandart(machine_config &config)
+{
+ cpu_device &maincpu(Z180(config, "maincpu", 12000000)); // XTAL not readable
+ maincpu.set_addrmap(AS_PROGRAM, &daryde_state::mem_map);
+ maincpu.set_addrmap(AS_IO, &daryde_state::io_map);
+
+ MK48T08(config, "timekpr");
+}
+
+ROM_START(pandart)
+ ROM_REGION(0x80000, "program", 0)
+ ROM_LOAD("27c040.ic5", 0x00000, 0x80000, CRC(b1bd5c14) SHA1(7164dcaebf0f23f5330b225e44ee87d9a8c79f4f))
+
+ ROM_REGION(0x117, "pal", 0)
+ ROM_LOAD("palce16v8h.ic1", 0x000, 0x117, NO_DUMP) // protected
+ROM_END
+
+GAME(1999, pandart, 0, pandart, pandart, daryde_state, empty_init, ROT0, "Daryde S. L.", "Panther Darts", MACHINE_IS_SKELETON_MECHANICAL)