diff options
| author | 2021-04-07 14:43:42 +1000 | |
|---|---|---|
| committer | 2021-04-07 14:43:42 +1000 | |
| commit | 3e28cafa550b94cc782a76b2ad15827d48b878bb (patch) | |
| tree | b0cef8f7326042f05f31e6d53d209a7770522177 | |
| parent | e42e059b238c5421a041927366349902c92f3cf6 (diff) | |
bus/a2bus: Suppress side effects of Grappler C0nX reads for debugger.
| -rw-r--r-- | src/devices/bus/a2bus/grappler.cpp | 11 |
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 { |
