diff options
author | 2012-09-17 07:43:37 +0000 | |
---|---|---|
committer | 2012-09-17 07:43:37 +0000 | |
commit | cc16777cce9c5a2cac9d88c595b6b5f4ee70a2ea (patch) | |
tree | 496c31635729f6af1e37f3337b50e91b1f9fde97 /src/mess/machine/dgnalpha.c | |
parent | e25c13f2532730ebf50d0cffa0147393fd8e0228 (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/dgnalpha.c')
-rw-r--r-- | src/mess/machine/dgnalpha.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mess/machine/dgnalpha.c b/src/mess/machine/dgnalpha.c index d37a6246aa7..2021a1b8cf4 100644 --- a/src/mess/machine/dgnalpha.c +++ b/src/mess/machine/dgnalpha.c @@ -144,19 +144,19 @@ READ8_MEMBER( dragon_alpha_state::ff20_read ) break; case 12: - result = wd17xx_data_r(m_fdc, 0); + result = wd17xx_data_r(m_fdc, space, 0); break; case 13: - result = wd17xx_sector_r(m_fdc, 0); + result = wd17xx_sector_r(m_fdc, space, 0); break; case 14: - result = wd17xx_track_r(m_fdc, 0); + result = wd17xx_track_r(m_fdc, space, 0); break; case 15: - result = wd17xx_status_r(m_fdc, 0); + result = wd17xx_status_r(m_fdc, space, 0); break; } return result; @@ -185,16 +185,16 @@ WRITE8_MEMBER( dragon_alpha_state::ff20_write ) break; case 12: - wd17xx_data_w(m_fdc, 0, data); + wd17xx_data_w(m_fdc, space, 0, data); break; case 13: - wd17xx_sector_w(m_fdc, 0, data); + wd17xx_sector_w(m_fdc, space, 0, data); break; case 14: - wd17xx_track_w(m_fdc, 0, data); + wd17xx_track_w(m_fdc, space, 0, data); break; case 15: - wd17xx_command_w(m_fdc, 0, data); + wd17xx_command_w(m_fdc, space, 0, data); /* disk head is encoded in the command byte */ wd17xx_set_side(m_fdc,(data & 0x02) ? 1 : 0); @@ -236,13 +236,13 @@ WRITE8_MEMBER( dragon_alpha_state::pia2_pa_w ) case 0x00: /* Inactive, do nothing */ break; case 0x01: /* Write to selected port */ - ay8910_data_w(m_ay8912, 0, m_pia_2->b_output()); + ay8910_data_w(m_ay8912, space, 0, m_pia_2->b_output()); break; case 0x02: /* Read from selected port */ - m_pia_2->portb_w(ay8910_r(m_ay8912, 0)); + m_pia_2->portb_w(ay8910_r(m_ay8912, space, 0)); break; case 0x03: /* Select port to write to */ - ay8910_address_w(m_ay8912, 0, m_pia_2->b_output()); + ay8910_address_w(m_ay8912, space, 0, m_pia_2->b_output()); break; } } |