summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/z180
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2022-12-07 02:26:57 +0100
committer hap <happppp@users.noreply.github.com>2022-12-07 02:27:10 +0100
commit8c8161227f52afff8da61ec9fd378199be12229f (patch)
treef84adac76ec0b3c862093bd26e518859c40c8ab9 /src/devices/cpu/z180
parent0d93398fb3d48e88209a4f3e07fd389522585ab6 (diff)
hd647180x: fix typo on port E read
Diffstat (limited to 'src/devices/cpu/z180')
-rw-r--r--src/devices/cpu/z180/hd647180x.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/cpu/z180/hd647180x.cpp b/src/devices/cpu/z180/hd647180x.cpp
index cc70b0781a8..8643be896b6 100644
--- a/src/devices/cpu/z180/hd647180x.cpp
+++ b/src/devices/cpu/z180/hd647180x.cpp
@@ -139,9 +139,9 @@ uint8_t hd647180x_device::z180_internal_port_read(uint8_t port)
break;
case 0x64: // lower half of ODRE is write-only
- data = (m_odr[port - 0x60] | 0x0f) & m_ddr[3];
- if (m_ddr[3] != 0xff)
- data |= m_port_input_cb[3](0, ~m_ddr[3]) & ~m_ddr[3];
+ data = (m_odr[port - 0x60] | 0x0f) & m_ddr[4];
+ if (m_ddr[4] != 0xff)
+ data |= m_port_input_cb[4](0, ~m_ddr[4]) & ~m_ddr[4];
LOG("HD647180X IDRE rd $%02x\n", data);
break;