diff options
Diffstat (limited to 'src/mame/machine/isbc_208.h')
-rw-r--r-- | src/mame/machine/isbc_208.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mame/machine/isbc_208.h b/src/mame/machine/isbc_208.h index 792b9c72306..ed9075da852 100644 --- a/src/mame/machine/isbc_208.h +++ b/src/mame/machine/isbc_208.h @@ -1,6 +1,5 @@ // license:BSD-3-Clause // copyright-holders:Carl - #ifndef MAME_MACHINE_ISBC_208_H #define MAME_MACHINE_ISBC_208_H @@ -13,8 +12,8 @@ class isbc_208_device : public device_t { public: template <typename T> - isbc_208_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&cpu_tag) - : isbc_208_device(mconfig, tag, owner, (uint32_t)0) + isbc_208_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&cpu_tag) + : isbc_208_device(mconfig, tag, owner, clock) { m_maincpu.set_tag(std::forward<T>(cpu_tag)); } @@ -25,7 +24,7 @@ public: DECLARE_READ8_MEMBER(stat_r); DECLARE_WRITE8_MEMBER(aux_w); - template <class Object> devcb_base &set_irq_callback(Object &&cb) { return m_out_irq_func.set_callback(std::forward<Object>(cb)); } + auto irq_callback() { return m_out_irq_func.bind(); } protected: virtual void device_start() override; @@ -47,12 +46,9 @@ private: DECLARE_READ8_MEMBER(dma_read_byte); DECLARE_WRITE8_MEMBER(dma_write_byte); DECLARE_WRITE_LINE_MEMBER(irq_w); - DECLARE_FLOPPY_FORMATS( floppy_formats ); + DECLARE_FLOPPY_FORMATS(floppy_formats); }; -#define MCFG_ISBC_208_IRQ(_irq_line) \ - downcast<isbc_208_device &>(*device).set_irq_callback(DEVCB_##_irq_line); - DECLARE_DEVICE_TYPE(ISBC_208, isbc_208_device) #endif // MAME_MACHINE_ISBC_208_H |