summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/8364_paula.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/8364_paula.h')
-rw-r--r--src/devices/machine/8364_paula.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/devices/machine/8364_paula.h b/src/devices/machine/8364_paula.h
index 412fe7679e6..c889a831b67 100644
--- a/src/devices/machine/8364_paula.h
+++ b/src/devices/machine/8364_paula.h
@@ -43,6 +43,18 @@
#pragma once
+
+//**************************************************************************
+// INTERFACE CONFIGURATION MACROS
+//**************************************************************************
+
+#define MCFG_PAULA_MEM_READ_CB(_devcb) \
+ downcast<paula_8364_device &>(*device).set_mem_r_callback(DEVCB_##_devcb);
+
+#define MCFG_PAULA_INT_CB(_devcb) \
+ downcast<paula_8364_device &>(*device).set_int_w_callback(DEVCB_##_devcb);
+
+
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -55,6 +67,8 @@ public:
paula_8364_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// configuration
+ template <class Object> devcb_base &set_mem_r_callback(Object &&cb) { return m_mem_r.set_callback(std::forward<Object>(cb)); }
+ template <class Object> devcb_base &set_int_w_callback(Object &&cb) { return m_int_w.set_callback(std::forward<Object>(cb)); }
auto mem_read_cb() { return m_mem_r.bind(); }
auto int_cb() { return m_int_w.bind(); }