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/kr2376.h | |
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/kr2376.h')
-rw-r--r-- | src/mess/machine/kr2376.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mess/machine/kr2376.h b/src/mess/machine/kr2376.h index c847343bdd1..065c65ccef5 100644 --- a/src/mess/machine/kr2376.h +++ b/src/mess/machine/kr2376.h @@ -85,15 +85,14 @@ struct kr2376_interface int clock; /* This will be called for every change of the strobe pin (pin 16). Optional */ -// kr2376_on_strobe_changed_func on_strobe_changed; - write8_device_func on_strobe_changed; + devcb_write_line on_strobe_changed_cb; }; #define KR2376_INTERFACE(name) const kr2376_interface (name)= /* keyboard matrix */ INPUT_PORTS_EXTERN( kr2376 ); /* keyboard data */ -READ8_DEVICE_HANDLER( kr2376_data_r ); +DECLARE_READ8_DEVICE_HANDLER( kr2376_data_r ); /* Set an input pin */ void kr2376_set_input_pin( device_t *device, kr2376_input_pin_t pin, int data ); |