From cc16777cce9c5a2cac9d88c595b6b5f4ee70a2ea Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 17 Sep 2012 07:43:37 +0000 Subject: 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] --- src/mess/drivers/at.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mess/drivers/at.c') 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); -- cgit v1.2.3-70-g09d2