summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/asc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/asc.h')
-rw-r--r--src/devices/sound/asc.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/devices/sound/asc.h b/src/devices/sound/asc.h
index a723707a9e9..582f7ce5e93 100644
--- a/src/devices/sound/asc.h
+++ b/src/devices/sound/asc.h
@@ -59,18 +59,20 @@ public:
ARDBEG = 7 // Subset of ASC included in the Ardbeg ASIC (LC520)
};
+ asc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, asc_type type)
+ : asc_device(mconfig, tag, owner, clock)
+ {
+ set_type(type);
+ }
- // construction/destruction
asc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- // inline configuration helpers
void set_type(asc_type type) { m_chip_type = type; }
-
-
template <class Write> devcb_base &set_irqf(Write &&wr)
{
return write_irq.set_callback(std::forward<Write>(wr));
}
+ auto irqf_callback() { return write_irq.bind(); }
DECLARE_READ8_MEMBER(read);
DECLARE_WRITE8_MEMBER(write);