diff options
author | 2019-03-25 23:13:40 +0100 | |
---|---|---|
committer | 2019-03-25 23:13:40 +0100 | |
commit | b380514764cf857469bae61c11143a19f79a74c5 (patch) | |
tree | 63c8012e262618f08a332da31dd714281aa2c5ed /src/devices/machine/ncr5385.h | |
parent | c24473ddff715ecec2e258a6eb38960cf8c8e98e (diff) |
Revert "conflict resolution (nw)"
This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing
changes made to 009cba4fb8102102168ef32870892438327f3705.
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 |