From a0351149de614051b7fb7563cd633e4c5e489b82 Mon Sep 17 00:00:00 2001 From: mooglyguy Date: Sun, 16 Dec 2018 11:27:29 +0100 Subject: Fixed recent regression in e0c6200, nw --- src/devices/cpu/e0c6200/e0c6s46.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3