diff options
Diffstat (limited to 'src/devices/machine/mc146818.h')
-rw-r--r-- | src/devices/machine/mc146818.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/machine/mc146818.h b/src/devices/machine/mc146818.h index 3bc79fb7d67..7b396e81320 100644 --- a/src/devices/machine/mc146818.h +++ b/src/devices/machine/mc146818.h @@ -22,7 +22,7 @@ //************************************************************************** #define MCFG_MC146818_IRQ_HANDLER(_irq) \ - devcb = &downcast<mc146818_device &>(*device).set_irq_callback(DEVCB_##_irq); + downcast<mc146818_device &>(*device).set_irq_callback(DEVCB_##_irq); // The MC146818 doesn't have century support, but when syncing the date & time at startup we can optionally store the century. #define MCFG_MC146818_CENTURY_INDEX(_century_index) \ @@ -59,6 +59,8 @@ public: // callbacks template <class Object> devcb_base &set_irq_callback(Object &&cb) { return m_write_irq.set_callback(std::forward<Object>(cb)); } + auto irq_callback() { return m_write_irq.bind(); } + void set_century_index(int century_index) { m_century_index = century_index; } void set_use_utc(bool use_utc) { m_use_utc = use_utc; } void set_binary(bool binary) { m_binary = binary; } |