diff options
Diffstat (limited to 'src/devices/machine/53c810.cpp')
-rw-r--r-- | src/devices/machine/53c810.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/devices/machine/53c810.cpp b/src/devices/machine/53c810.cpp index b97999f5ad4..261d640b340 100644 --- a/src/devices/machine/53c810.cpp +++ b/src/devices/machine/53c810.cpp @@ -623,6 +623,9 @@ void lsi53c810_device::add_opcode(uint8_t op, uint8_t mask, opcode_handler_deleg lsi53c810_device::lsi53c810_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : legacy_scsi_host_adapter(mconfig, LSI53C810, tag, owner, clock) + , m_irq_cb(*this) + , m_dma_cb(*this) + , m_fetch_cb(*this) { } @@ -630,9 +633,9 @@ void lsi53c810_device::device_start() { legacy_scsi_host_adapter::device_start(); - m_irq_cb.bind_relative_to(*owner()); - m_dma_cb.bind_relative_to(*owner()); - m_fetch_cb.bind_relative_to(*owner()); + m_irq_cb.resolve(); + m_dma_cb.resolve(); + m_fetch_cb.resolve(); for (auto & elem : dma_opcode) { @@ -720,7 +723,7 @@ unsigned lsi53c810_device::lsi53c810_dasm(char *buf, uint32_t pc) buf += sprintf(buf, "%s ", op_mnemonic); need_cojunction = false; - for (i = 0; i < ARRAY_LENGTH(flags); i++) + for (i = 0; i < std::size(flags); i++) { if (op & flags[i].flag) { |