summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/at.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/drivers/at.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/drivers/at.c')
-rw-r--r--src/mess/drivers/at.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/drivers/at.c b/src/mess/drivers/at.c
index 6ad885f3492..910c20662ad 100644
--- a/src/mess/drivers/at.c
+++ b/src/mess/drivers/at.c
@@ -165,10 +165,10 @@ ADDRESS_MAP_END
READ32_MEMBER( at_state::ct486_chipset_r )
{
if (ACCESSING_BITS_0_7)
- return pic8259_r(m_pic8259_master, 0);
+ return pic8259_r(m_pic8259_master, space, 0);
if (ACCESSING_BITS_8_15)
- return pic8259_r(m_pic8259_master, 1) << 8;
+ return pic8259_r(m_pic8259_master, space, 1) << 8;
if (ACCESSING_BITS_24_31)
return m_cs4031->data_r(space, 0, 0) << 24;
@@ -179,10 +179,10 @@ READ32_MEMBER( at_state::ct486_chipset_r )
WRITE32_MEMBER( at_state::ct486_chipset_w )
{
if (ACCESSING_BITS_0_7)
- pic8259_w(m_pic8259_master, 0, data);
+ pic8259_w(m_pic8259_master, space, 0, data);
if (ACCESSING_BITS_8_15)
- pic8259_w(m_pic8259_master, 1, data >> 8);
+ pic8259_w(m_pic8259_master, space, 1, data >> 8);
if (ACCESSING_BITS_16_23)
m_cs4031->address_w(space, 0, data >> 16, 0);