summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2020-07-03 20:34:07 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2020-07-03 20:34:07 +0200
commit5f7e034a13da226d035e43b6c653705e083c42cd (patch)
tree6dd286a4be76dbedc2ade008a61c3abde200ea26 /src/devices
parentd11915345311eba87c25ee5aec29285badd839af (diff)
devices/machine/iwm.cpp, device/machine/ncr539x.cpp, mame/machine/abc1600mac.cpp: fixed initializations issues that were causing problems in devnoclear debug builds (nw)
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/machine/iwm.cpp4
-rw-r--r--src/devices/machine/ncr539x.cpp1
2 files changed, 3 insertions, 2 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);