summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/msx_cart/cartridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/msx_cart/cartridge.cpp')
-rw-r--r--src/devices/bus/msx_cart/cartridge.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/devices/bus/msx_cart/cartridge.cpp b/src/devices/bus/msx_cart/cartridge.cpp
index 9c722e74872..3a3af30d191 100644
--- a/src/devices/bus/msx_cart/cartridge.cpp
+++ b/src/devices/bus/msx_cart/cartridge.cpp
@@ -26,6 +26,8 @@
#include "super_swangi.h"
#include "yamaha.h"
+#include "bus/msx_slot/cartridge.h"
+
void msx_cart(device_slot_interface &device)
{
@@ -72,7 +74,7 @@ void msx_cart(device_slot_interface &device)
msx_cart_interface::msx_cart_interface(const machine_config &mconfig, device_t &device)
: device_slot_card_interface(mconfig, device)
- , m_out_irq_cb(*this)
+ , m_exp(nullptr)
{
}
@@ -100,6 +102,21 @@ void msx_cart_interface::sram_alloc(uint32_t size)
std::fill_n(m_sram.begin(), size, 0x00);
}
+WRITE_LINE_MEMBER(msx_cart_interface::irq_out)
+{
+ m_exp->irq_out(state);
+}
+
+address_space &msx_cart_interface::memory_space() const
+{
+ return m_exp->memory_space();
+}
+
+address_space &msx_cart_interface::io_space() const
+{
+ return m_exp->io_space();
+}
+
// Several yamaha machines had 60 pin expansion slots. The pinouts of these slots was
// exactly the same as the regular 50 pin cartridge slots. The lowest 10 pins are simply