summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/iq151/disc2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/iq151/disc2.cpp')
-rw-r--r--src/devices/bus/iq151/disc2.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/devices/bus/iq151/disc2.cpp b/src/devices/bus/iq151/disc2.cpp
index 0fde6792d40..db9919ef516 100644
--- a/src/devices/bus/iq151/disc2.cpp
+++ b/src/devices/bus/iq151/disc2.cpp
@@ -95,7 +95,7 @@ const tiny_rom_entry *iq151_disc2_device::device_rom_region() const
void iq151_disc2_device::read(offs_t offset, uint8_t &data)
{
- // internal ROM is mapped at 0xe000-0xe7ff
+ // interal ROM is mapped at 0xe000-0xe7ff
if (offset >= 0xe000 && offset < 0xe800 && m_rom_enabled)
data = m_rom[offset & 0x7ff];
}
@@ -107,10 +107,12 @@ void iq151_disc2_device::read(offs_t offset, uint8_t &data)
void iq151_disc2_device::io_read(offs_t offset, uint8_t &data)
{
+ /* This is gross */
+ address_space *space = nullptr;
if (offset == 0xaa)
- data = m_fdc->msr_r();
+ data = m_fdc->msr_r(*space, 0, 0xff);
else if (offset == 0xab)
- data = m_fdc->fifo_r();
+ data = m_fdc->fifo_r(*space, 0, 0xff);
}
//-------------------------------------------------
@@ -119,8 +121,9 @@ void iq151_disc2_device::io_read(offs_t offset, uint8_t &data)
void iq151_disc2_device::io_write(offs_t offset, uint8_t data)
{
+ address_space *space = nullptr;
if (offset == 0xab)
- m_fdc->fifo_w(data);
+ m_fdc->fifo_w(*space, 0, data, 0xff);
else if (offset == 0xac)
m_rom_enabled = (data == 0x01);
}