summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-04-07 14:43:42 +1000
committer Vas Crabb <vas@vastheman.com>2021-04-07 14:43:42 +1000
commit3e28cafa550b94cc782a76b2ad15827d48b878bb (patch)
treeb0cef8f7326042f05f31e6d53d209a7770522177
parente42e059b238c5421a041927366349902c92f3cf6 (diff)
bus/a2bus: Suppress side effects of Grappler C0nX reads for debugger.
-rw-r--r--src/devices/bus/a2bus/grappler.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/devices/bus/a2bus/grappler.cpp b/src/devices/bus/a2bus/grappler.cpp
index 3b14db16c48..e842acb21a6 100644
--- a/src/devices/bus/a2bus/grappler.cpp
+++ b/src/devices/bus/a2bus/grappler.cpp
@@ -235,10 +235,13 @@ u8 a2bus_grappler_device::read_c0nx(u8 offset)
{
LOG("Read C0n%01X\n", offset);
- if (BIT(offset, 1)) // A1 - assert strobe
- machine().scheduler().synchronize(timer_expired_delegate(FUNC(a2bus_grappler_device::set_strobe), this), 0);
- else if (BIT(offset, 2)) // A2 - release strobe
- machine().scheduler().synchronize(timer_expired_delegate(FUNC(a2bus_grappler_device::set_strobe), this), 1);
+ if (!machine().side_effects_disabled())
+ {
+ if (BIT(offset, 1)) // A1 - assert strobe
+ machine().scheduler().synchronize(timer_expired_delegate(FUNC(a2bus_grappler_device::set_strobe), this), 0);
+ else if (BIT(offset, 2)) // A2 - release strobe
+ machine().scheduler().synchronize(timer_expired_delegate(FUNC(a2bus_grappler_device::set_strobe), this), 1);
+ }
if (BIT(offset, 0)) // A0 - printer status
{