summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2020-07-04 22:34:57 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2020-07-04 22:34:57 +0200
commit9cd4f31d8f3d5cee3697b764d7b3eb4b343a9bf8 (patch)
tree1932d06195b8ff22f2b5377aa7693b24627c76db
parentf16e2ef835d7986f982c127efc45c238d1c7db2c (diff)
devices/machine/8042kbdc, mame/machine/s32comm: initialize variables which caused problems in debug devnoclear builds
-rw-r--r--src/devices/machine/8042kbdc.cpp1
-rw-r--r--src/mame/machine/s32comm.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/machine/8042kbdc.cpp b/src/devices/machine/8042kbdc.cpp
index 18338dd14d9..b2ce8b6743e 100644
--- a/src/devices/machine/8042kbdc.cpp
+++ b/src/devices/machine/8042kbdc.cpp
@@ -72,6 +72,7 @@ void kbdc8042_device::device_start()
m_last_write_to_control = 0;
m_status_read_mode = 0;
m_speaker = 0;
+ m_offset1 = 0;
m_update_timer = timer_alloc(TIMER_UPDATE);
m_update_timer->adjust(attotime::never);
diff --git a/src/mame/machine/s32comm.cpp b/src/mame/machine/s32comm.cpp
index 26797685c55..b53448b46d3 100644
--- a/src/mame/machine/s32comm.cpp
+++ b/src/mame/machine/s32comm.cpp
@@ -133,6 +133,8 @@ void s32comm_device::device_reset()
m_zfg = 0;
m_cn = 0;
m_fg = 0;
+
+ std::fill(std::begin(m_shared), std::end(m_shared), 0);
}
uint8_t s32comm_device::zfg_r(offs_t offset)