From 5f7e034a13da226d035e43b6c653705e083c42cd Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Fri, 3 Jul 2020 20:34:07 +0200 Subject: devices/machine/iwm.cpp, device/machine/ncr539x.cpp, mame/machine/abc1600mac.cpp: fixed initializations issues that were causing problems in devnoclear debug builds (nw) --- src/devices/machine/iwm.cpp | 4 ++-- src/devices/machine/ncr539x.cpp | 1 + src/mame/machine/abc1600mac.cpp | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/devices/machine/iwm.cpp b/src/devices/machine/iwm.cpp index 9c5002672e2..385561978b2 100644 --- a/src/devices/machine/iwm.cpp +++ b/src/devices/machine/iwm.cpp @@ -2,7 +2,7 @@ // copyright-holders:Olivier Galibert /********************************************************************* - iwm.c + iwm.cpp Implementation of the Apple IWM floppy disk controller @@ -15,6 +15,7 @@ DEFINE_DEVICE_TYPE(IWM, iwm_device, "iwm", "Apple IWM floppy controller") iwm_device::iwm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t q3_clock) : applefdintf_device(mconfig, IWM, tag, owner, clock), + m_floppy(nullptr), m_q3_clock(q3_clock) { if (q3_clock != 0) @@ -62,7 +63,6 @@ void iwm_device::device_reset() { applefdintf_device::device_reset(); - m_floppy = nullptr; m_last_sync = machine().time().as_ticks(clock()); m_next_state_change = 0; m_active = MODE_IDLE; diff --git a/src/devices/machine/ncr539x.cpp b/src/devices/machine/ncr539x.cpp index 09e0bee9f21..1ddd46b2c18 100644 --- a/src/devices/machine/ncr539x.cpp +++ b/src/devices/machine/ncr539x.cpp @@ -160,6 +160,7 @@ void ncr539x_device::device_reset() m_control1 = m_control2 = m_control3 = m_control4 = 0; m_chipid_available = false; m_chipid_lock = false; + m_fifo_internal_state = 0; m_out_irq_cb(CLEAR_LINE); m_out_drq_cb(CLEAR_LINE); diff --git a/src/mame/machine/abc1600mac.cpp b/src/mame/machine/abc1600mac.cpp index 37c70a11433..4b051edf785 100644 --- a/src/mame/machine/abc1600mac.cpp +++ b/src/mame/machine/abc1600mac.cpp @@ -116,7 +116,8 @@ abc1600_mac_device::abc1600_mac_device(const machine_config &mconfig, const char m_page_ram(*this, "page_ram"), m_watchdog(*this, "watchdog"), m_cpu(*this, finder_base::DUMMY_TAG), - m_task(0) + m_task(0), + m_cause(0) { } -- cgit v1.2.3