summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/e0c6200
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-12-16 11:27:29 +0100
committer mooglyguy <therealmogminer@gmail.com>2018-12-16 11:27:29 +0100
commita0351149de614051b7fb7563cd633e4c5e489b82 (patch)
treecddc4444d451917b9daed42bc29da8ff830b4671 /src/devices/cpu/e0c6200
parenta5116d59f01fc855730aa5a2497a9c8f6f495a60 (diff)
Fixed recent regression in e0c6200, nw
Diffstat (limited to 'src/devices/cpu/e0c6200')
-rw-r--r--src/devices/cpu/e0c6200/e0c6s46.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/cpu/e0c6200/e0c6s46.cpp b/src/devices/cpu/e0c6200/e0c6s46.cpp
index f23b7ea2ca5..1cd3217f6ee 100644
--- a/src/devices/cpu/e0c6200/e0c6s46.cpp
+++ b/src/devices/cpu/e0c6200/e0c6s46.cpp
@@ -354,7 +354,9 @@ u8 e0c6s46_device::read_p(u8 port)
if (m_p_dir >> port & 1)
return m_port_p[port];
- m_read_p[port](port, 0xff);
+ if (port < 4)
+ return m_read_p[port](port, 0xff);
+
return 0;
}