summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/spectrum/wafa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/spectrum/wafa.cpp')
-rw-r--r--src/devices/bus/spectrum/wafa.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/devices/bus/spectrum/wafa.cpp b/src/devices/bus/spectrum/wafa.cpp
index d3757d20e47..f1f722715b3 100644
--- a/src/devices/bus/spectrum/wafa.cpp
+++ b/src/devices/bus/spectrum/wafa.cpp
@@ -22,6 +22,7 @@
#include "emu.h"
#include "wafa.h"
+#include "softlist_dev.h"
//**************************************************************************
// DEVICE DEFINITIONS
@@ -52,6 +53,7 @@ void spectrum_wafa_device::device_add_mconfig(machine_config &config)
SPECTRUM_EXPANSION_SLOT(config, m_exp, spectrum_expansion_devices, nullptr);
m_exp->irq_handler().set(DEVICE_SELF_OWNER, FUNC(spectrum_expansion_slot_device::irq_w));
m_exp->nmi_handler().set(DEVICE_SELF_OWNER, FUNC(spectrum_expansion_slot_device::nmi_w));
+ m_exp->fb_r_handler().set(DEVICE_SELF_OWNER, FUNC(spectrum_expansion_slot_device::fb_r));
SOFTWARE_LIST(config, "wafadrive_list").set_original("spectrum_wafadrive");
}
@@ -101,9 +103,9 @@ void spectrum_wafa_device::device_reset()
// IMPLEMENTATION
//**************************************************************************
-READ_LINE_MEMBER(spectrum_wafa_device::romcs)
+bool spectrum_wafa_device::romcs()
{
- return m_romcs | m_exp->romcs();
+ return m_romcs || m_exp->romcs();
}
void spectrum_wafa_device::pre_opcode_fetch(offs_t offset)
@@ -158,12 +160,6 @@ uint8_t spectrum_wafa_device::mreq_r(offs_t offset)
return data;
}
-void spectrum_wafa_device::mreq_w(offs_t offset, uint8_t data)
-{
- if (m_exp->romcs())
- m_exp->mreq_w(offset, data);
-}
-
uint8_t spectrum_wafa_device::iorq_r(offs_t offset)
{
uint8_t data = 0xff;