diff options
Diffstat (limited to 'src/mame/machine/nmk004.h')
-rw-r--r-- | src/mame/machine/nmk004.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mame/machine/nmk004.h b/src/mame/machine/nmk004.h index a7905a3dbfb..d951a976777 100644 --- a/src/mame/machine/nmk004.h +++ b/src/mame/machine/nmk004.h @@ -13,20 +13,13 @@ #pragma once - -#define MCFG_NMK004_ADD(tag, clock) \ - MCFG_DEVICE_ADD(tag, NMK004, clock) - -#define MCFG_NMK004_RESET_CB(cb) \ - downcast<nmk004_device &>(*device).set_reset_cb(DEVCB_##cb); - class nmk004_device : public device_t { public: - template <typename Obj> devcb_base &set_reset_cb(Obj &&object) { return m_reset_cb.set_callback(std::forward<Obj>(object)); } - nmk004_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + auto reset_cb() { return m_reset_cb.bind(); } + // host interface DECLARE_WRITE8_MEMBER( write ); DECLARE_READ8_MEMBER( read ); |