diff options
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 |
commit | cc16777cce9c5a2cac9d88c595b6b5f4ee70a2ea (patch) | |
tree | 496c31635729f6af1e37f3337b50e91b1f9fde97 /src/mame/drivers/highvdeo.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/mame/drivers/highvdeo.c')
-rw-r--r-- | src/mame/drivers/highvdeo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/highvdeo.c b/src/mame/drivers/highvdeo.c index 61eb4f9103b..5cd7d0cf8e7 100644 --- a/src/mame/drivers/highvdeo.c +++ b/src/mame/drivers/highvdeo.c @@ -266,7 +266,7 @@ WRITE16_MEMBER(highvdeo_state::tv_oki6376_w) if (ACCESSING_BITS_0_7 && okidata != data) { okidata = data; - okim6376_w(device, 0, data & ~0x80); + okim6376_w(device, space, 0, data & ~0x80); okim6376_st_w (device, data & 0x80); } } @@ -340,7 +340,7 @@ WRITE16_MEMBER(highvdeo_state::tv_ncf_oki6376_w) static int okidata; if (ACCESSING_BITS_0_7 && okidata != data) { okidata = data; - okim6376_w(device, 0, data ); + okim6376_w(device, space, 0, data ); } } |