summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/a2diskii.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/a2diskii.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/a2diskii.c')
-rw-r--r--src/mess/machine/a2diskii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/machine/a2diskii.c b/src/mess/machine/a2diskii.c
index a9ed3e0259a..eab937f882c 100644
--- a/src/mess/machine/a2diskii.c
+++ b/src/mess/machine/a2diskii.c
@@ -138,7 +138,7 @@ void a2bus_floppy_device::device_reset()
UINT8 a2bus_floppy_device::read_c0nx(address_space &space, UINT8 offset)
{
- return applefdc_r(m_fdc, offset);
+ return applefdc_r(m_fdc, space, offset);
}
@@ -148,7 +148,7 @@ UINT8 a2bus_floppy_device::read_c0nx(address_space &space, UINT8 offset)
void a2bus_floppy_device::write_c0nx(address_space &space, UINT8 offset, UINT8 data)
{
- applefdc_w(m_fdc, offset, data);
+ applefdc_w(m_fdc, space, offset, data);
}
/*-------------------------------------------------