summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/spectrum/protek.cpp
diff options
context:
space:
mode:
author andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
committer andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
commitb380514764cf857469bae61c11143a19f79a74c5 (patch)
tree63c8012e262618f08a332da31dd714281aa2c5ed /src/devices/bus/spectrum/protek.cpp
parentc24473ddff715ecec2e258a6eb38960cf8c8e98e (diff)
Revert "conflict resolution (nw)"
This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
Diffstat (limited to 'src/devices/bus/spectrum/protek.cpp')
-rw-r--r--src/devices/bus/spectrum/protek.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/devices/bus/spectrum/protek.cpp b/src/devices/bus/spectrum/protek.cpp
index d1e122d8dbb..a3f3a1838f8 100644
--- a/src/devices/bus/spectrum/protek.cpp
+++ b/src/devices/bus/spectrum/protek.cpp
@@ -72,20 +72,17 @@ void spectrum_protek_device::device_start()
// IMPLEMENTATION
//**************************************************************************
-uint8_t spectrum_protek_device::iorq_r(offs_t offset)
+READ8_MEMBER(spectrum_protek_device::port_fe_r)
{
uint8_t data = 0xff;
- switch (offset & 0xff)
- {
- case 0xfe:
- if (((offset >> 8) & 8) == 0)
- data = m_exp_line3->read() | (0xff ^ 0x10);
+ uint8_t lines = offset >> 8;
- if (((offset >> 8) & 16) == 0)
- data = m_exp_line4->read() | (0xff ^ 0x1d);
- break;
- }
+ if ((lines & 8) == 0)
+ data = m_exp_line3->read() | (0xff ^ 0x10);
+
+ if ((lines & 16) == 0)
+ data = m_exp_line4->read() | (0xff ^ 0x1d);
return data;
}