summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sh
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2024-03-05 23:17:42 +0100
committer Olivier Galibert <galibert@pobox.com>2024-03-05 23:17:48 +0100
commit84f5fb0653d891053d4dd123764677b733746b42 (patch)
tree65a5118702618e9522bf5393748a781482dbb373 /src/devices/cpu/sh
parent190f332a302f7600e01847733ed43f065fed25eb (diff)
Re-add the subcomponents to the swx00 and tweak the adc
Diffstat (limited to 'src/devices/cpu/sh')
-rw-r--r--src/devices/cpu/sh/sh_port.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/sh/sh_port.cpp b/src/devices/cpu/sh/sh_port.cpp
index 8bc962f65cd..ddd93a1a4e2 100644
--- a/src/devices/cpu/sh/sh_port.cpp
+++ b/src/devices/cpu/sh/sh_port.cpp
@@ -81,7 +81,7 @@ void sh_port32_device::device_reset()
u32 sh_port32_device::dr_r()
{
- if(~m_io & ~m_mask)
+ if((~m_io) & (~m_mask))
return (m_dr & m_io) | (m_cpu->do_read_port32(m_index) & ~m_io);
return m_dr;
}