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/emu/sound/msm5232.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/sound/msm5232.h') diff --git a/src/emu/sound/msm5232.h b/src/emu/sound/msm5232.h index 11e9eb3e033..11f8b218639 100644 --- a/src/emu/sound/msm5232.h +++ b/src/emu/sound/msm5232.h @@ -8,10 +8,10 @@ struct msm5232_interface { double capacity[8]; /* in Farads, capacitors connected to pins: 24,25,26,27 and 37,38,39,40 */ - void (*gate_handler)(device_t *device, int state); /* callback called when the GATE output pin changes state */ + devcb_write_line gate_handler_cb; /* callback called when the GATE output pin changes state */ }; -WRITE8_DEVICE_HANDLER( msm5232_w ); +DECLARE_WRITE8_DEVICE_HANDLER( msm5232_w ); void msm5232_set_clock(device_t *device, int clock); -- cgit v1.2.3-70-g09d2