diff options
Diffstat (limited to 'src/devices/machine/ncr5385.h')
-rw-r--r-- | src/devices/machine/ncr5385.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/devices/machine/ncr5385.h b/src/devices/machine/ncr5385.h index a1dec052045..3a60ca0a6c8 100644 --- a/src/devices/machine/ncr5385.h +++ b/src/devices/machine/ncr5385.h @@ -44,6 +44,14 @@ #pragma once + +//************************************************************************** +// INTERFACE CONFIGURATION MACROS +//************************************************************************** + +#define MCFG_NCR5385_INT_CB(_int) \ + downcast<ncr5385_device &>(*device).set_int_callback(DEVCB_##_int); + //************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -56,10 +64,11 @@ public: // construction/destruction ncr5385_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + template <class Object> devcb_base &set_int_callback(Object &&cb) { return m_int.set_callback(std::forward<Object>(cb)); } auto irq() { return m_int.bind(); } - void write(offs_t offset, uint8_t data); - uint8_t read(offs_t offset); + DECLARE_WRITE8_MEMBER(write); + DECLARE_READ8_MEMBER(read); protected: // device-level overrides |