summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/centronics/chessmec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/centronics/chessmec.cpp')
-rw-r--r--src/devices/bus/centronics/chessmec.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/devices/bus/centronics/chessmec.cpp b/src/devices/bus/centronics/chessmec.cpp
new file mode 100644
index 00000000000..82a6c8e1c55
--- /dev/null
+++ b/src/devices/bus/centronics/chessmec.cpp
@@ -0,0 +1,39 @@
+// license:BSD-3-Clause
+// copyright-holders:hap
+/*
+
+The ChessMachine EC by Tasc
+External module with ARM2 CPU, also sold under the Mephisto brand by H&G
+
+see chessmachine_device for technical notes
+
+*/
+
+#include "emu.h"
+#include "chessmec.h"
+
+
+DEFINE_DEVICE_TYPE(CENTRONICS_CHESSMEC, centronics_chessmec_device, "centronics_chessmec", "The ChessMachine EC")
+
+
+//-------------------------------------------------
+// constructor
+//-------------------------------------------------
+
+centronics_chessmec_device::centronics_chessmec_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ device_t(mconfig, CENTRONICS_CHESSMEC, tag, owner, clock),
+ device_centronics_peripheral_interface(mconfig, *this),
+ m_chessm(*this, "chessm")
+{ }
+
+
+
+//-------------------------------------------------
+// device_add_mconfig - add device configuration
+//-------------------------------------------------
+
+void centronics_chessmec_device::device_add_mconfig(machine_config &config)
+{
+ CHESSMACHINE(config, m_chessm, 15'000'000);
+ m_chessm->data_out().set(FUNC(centronics_chessmec_device::output_busy));
+}