summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/m7501.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
commitf88cefad27a1737c76e09d99c9fb43e173506081 (patch)
tree2d8167d03579c46e226471747eb4407bd00ed6fa /src/devices/cpu/m6502/m7501.h
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/cpu/m6502/m7501.h')
-rw-r--r--src/devices/cpu/m6502/m7501.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/devices/cpu/m6502/m7501.h b/src/devices/cpu/m6502/m7501.h
new file mode 100644
index 00000000000..7ded4caffe2
--- /dev/null
+++ b/src/devices/cpu/m6502/m7501.h
@@ -0,0 +1,34 @@
+// license:BSD-3-Clause
+// copyright-holders:Olivier Galibert
+/***************************************************************************
+
+ m7501.h
+
+ 6510 derivative, essentially identical. Also known as the 8501.
+
+***************************************************************************/
+
+#ifndef __M7501_H__
+#define __M7501_H__
+
+#include "m6510.h"
+
+#define MCFG_M7501_PORT_CALLBACKS(_read, _write) \
+ downcast<m7501_device *>(device)->set_callbacks(DEVCB_##_read, DEVCB_##_write);
+
+#define MCFG_M7501_PORT_PULLS(_up, _down) \
+ downcast<m7501_device *>(device)->set_pulls(_up, _down);
+
+class m7501_device : public m6510_device {
+public:
+ m7501_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+};
+
+enum {
+ M7501_IRQ_LINE = m6502_device::IRQ_LINE,
+ M7501_NMI_LINE = m6502_device::NMI_LINE
+};
+
+extern const device_type M7501;
+
+#endif