summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/i8251.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/i8251.cpp')
-rw-r--r--src/devices/machine/i8251.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/machine/i8251.cpp b/src/devices/machine/i8251.cpp
index 773262b617e..1c3189d8f8f 100644
--- a/src/devices/machine/i8251.cpp
+++ b/src/devices/machine/i8251.cpp
@@ -674,9 +674,11 @@ uint8_t i8251_device::data_r()
{
LOG("read data: %02x, STATUS=%02x\n",m_rx_data,m_status);
/* reading clears */
- m_status &= ~I8251_STATUS_RX_READY;
-
- update_rx_ready();
+ if (!machine().side_effects_disabled())
+ {
+ m_status &= ~I8251_STATUS_RX_READY;
+ update_rx_ready();
+ }
return m_rx_data;
}