summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/iq151_disc2.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-09-17 07:43:37 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-09-17 07:43:37 +0000
commitcc16777cce9c5a2cac9d88c595b6b5f4ee70a2ea (patch)
tree496c31635729f6af1e37f3337b50e91b1f9fde97 /src/mess/machine/iq151_disc2.c
parente25c13f2532730ebf50d0cffa0147393fd8e0228 (diff)
Memory handler normalization, part 1.
READ/WRITE_DEVICE*_HANDLERs are now passed an address_space &, and the 8-bit variants get a mem_mask as well. This means they are now directly compatible with the member function delegates. Added a generic address space to the driver_device that can be used when no specific address space is available. Also added DECLARE_READ/WRITE_DEVICE*_HANDLER macros to declare device callbacks with default mem_mask parameters. [Aaron Giles]
Diffstat (limited to 'src/mess/machine/iq151_disc2.c')
-rw-r--r--src/mess/machine/iq151_disc2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mess/machine/iq151_disc2.c b/src/mess/machine/iq151_disc2.c
index ebc3f6a364f..5ff4df25017 100644
--- a/src/mess/machine/iq151_disc2.c
+++ b/src/mess/machine/iq151_disc2.c
@@ -130,9 +130,9 @@ void iq151_disc2_device::read(offs_t offset, UINT8 &data)
void iq151_disc2_device::io_read(offs_t offset, UINT8 &data)
{
if (offset == 0xaa)
- data = upd765_status_r(m_fdc, 0);
+ data = upd765_status_r(m_fdc, machine().driver_data()->generic_space(), 0);
else if (offset == 0xab)
- data = upd765_data_r(m_fdc, 0);
+ data = upd765_data_r(m_fdc, machine().driver_data()->generic_space(), 0);
}
//-------------------------------------------------
@@ -142,7 +142,7 @@ void iq151_disc2_device::io_read(offs_t offset, UINT8 &data)
void iq151_disc2_device::io_write(offs_t offset, UINT8 data)
{
if (offset == 0xab)
- upd765_data_w(m_fdc, 0, data);
+ upd765_data_w(m_fdc, machine().driver_data()->generic_space(), 0, data);
else if (offset == 0xac)
m_rom_enabled = (data == 0x01);
}