summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-06-23 16:53:44 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-06-23 16:53:44 -0400
commit4d63d9d31ea5a68e5a90e3a279499e0d8cfa29bf (patch)
tree3586472afd369d988040a21b77e802d184e38e1f
parent5a6c24778c8b967fd1304d117cedbf818cdd16ee (diff)
Disable side effects in some read handlers (nw)
-rw-r--r--src/devices/machine/msm6253.cpp3
-rw-r--r--src/devices/machine/upd4701.cpp11
2 files changed, 9 insertions, 5 deletions
diff --git a/src/devices/machine/msm6253.cpp b/src/devices/machine/msm6253.cpp
index 3c85f84879e..af09f141405 100644
--- a/src/devices/machine/msm6253.cpp
+++ b/src/devices/machine/msm6253.cpp
@@ -103,7 +103,8 @@ bool msm6253_device::shift_out()
bool msb = BIT(m_shift_register, 7);
// shift the bit out, with zero coming in on the other end
- m_shift_register <<= 1;
+ if (!machine().side_effect_disabled())
+ m_shift_register <<= 1;
// return the bit
return msb;
diff --git a/src/devices/machine/upd4701.cpp b/src/devices/machine/upd4701.cpp
index 46129b3a92a..3fdcbf726fb 100644
--- a/src/devices/machine/upd4701.cpp
+++ b/src/devices/machine/upd4701.cpp
@@ -170,10 +170,13 @@ WRITE8_MEMBER(upd4701_device::reset_y)
READ8_MEMBER(upd4701_device::reset_xy)
{
- resetx_w(1);
- resety_w(1);
- resetx_w(0);
- resety_w(0);
+ if (!machine().side_effect_disabled())
+ {
+ resetx_w(1);
+ resety_w(1);
+ resetx_w(0);
+ resety_w(0);
+ }
return space.unmap();
}