summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/tms5110.h
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/emu/sound/tms5110.h
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/emu/sound/tms5110.h')
-rw-r--r--src/emu/sound/tms5110.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/sound/tms5110.h b/src/emu/sound/tms5110.h
index 89ecc861c41..4bd3db7c34b 100644
--- a/src/emu/sound/tms5110.h
+++ b/src/emu/sound/tms5110.h
@@ -38,18 +38,18 @@ struct tms5110_interface
devcb_write_line romclk_func; /* rom clock - Only used to drive the data lines */
};
-WRITE8_DEVICE_HANDLER( tms5110_ctl_w );
-READ8_DEVICE_HANDLER( tms5110_ctl_r );
+DECLARE_WRITE8_DEVICE_HANDLER( tms5110_ctl_w );
+DECLARE_READ8_DEVICE_HANDLER( tms5110_ctl_r );
WRITE_LINE_DEVICE_HANDLER( tms5110_pdc_w );
/* this is only used by cvs.c
* it is not related at all to the speech generation
* and conflicts with the new rom controller interface.
*/
-READ8_DEVICE_HANDLER( tms5110_romclk_hack_r );
+DECLARE_READ8_DEVICE_HANDLER( tms5110_romclk_hack_r );
/* m58817 status line */
-READ8_DEVICE_HANDLER( m58817_status_r );
+DECLARE_READ8_DEVICE_HANDLER( m58817_status_r );
int tms5110_ready_r(device_t *device);
@@ -188,8 +188,8 @@ WRITE_LINE_DEVICE_HANDLER( tmsprom_m0_w );
READ_LINE_DEVICE_HANDLER( tmsprom_data_r );
/* offset is rom # */
-WRITE8_DEVICE_HANDLER( tmsprom_rom_csq_w );
-WRITE8_DEVICE_HANDLER( tmsprom_bit_w );
+DECLARE_WRITE8_DEVICE_HANDLER( tmsprom_rom_csq_w );
+DECLARE_WRITE8_DEVICE_HANDLER( tmsprom_bit_w );
WRITE_LINE_DEVICE_HANDLER( tmsprom_enable_w );
class tmsprom_device : public device_t