summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/latch8.h
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2020-03-25 18:26:17 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2020-03-25 18:26:17 +0100
commitdc83375dcaaecddc3302cc9eddb0e39b17cb3f04 (patch)
tree82dcab9a2efc60b449f3c5a53cc0bee5437b2d46 /src/devices/machine/latch8.h
parent3a15530fa5afafd6fff1e226ffce9aabb0993b3c (diff)
devices/machine: simplified more handlers (nw)
Diffstat (limited to 'src/devices/machine/latch8.h')
-rw-r--r--src/devices/machine/latch8.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/devices/machine/latch8.h b/src/devices/machine/latch8.h
index d940c84cfa7..750a9c752b5 100644
--- a/src/devices/machine/latch8.h
+++ b/src/devices/machine/latch8.h
@@ -25,12 +25,12 @@ public:
/* write & read full byte */
- DECLARE_READ8_MEMBER( read );
- DECLARE_WRITE8_MEMBER( write );
+ uint8_t read(offs_t offset);
+ void write(offs_t offset, uint8_t data);
/* reset the latch */
- DECLARE_WRITE8_MEMBER( reset_w );
+ void reset_w(offs_t offset, uint8_t data);
/* read bit x */
/* return (latch >> x) & 0x01 */
@@ -59,14 +59,14 @@ public:
/* write bit x from data into bit determined by offset */
/* latch = (latch & ~(1<<offset)) | (((data >> x) & 0x01) << offset) */
- DECLARE_WRITE8_MEMBER( bit0_w );
- DECLARE_WRITE8_MEMBER( bit1_w );
- DECLARE_WRITE8_MEMBER( bit2_w );
- DECLARE_WRITE8_MEMBER( bit3_w );
- DECLARE_WRITE8_MEMBER( bit4_w );
- DECLARE_WRITE8_MEMBER( bit5_w );
- DECLARE_WRITE8_MEMBER( bit6_w );
- DECLARE_WRITE8_MEMBER( bit7_w );
+ void bit0_w(offs_t offset, uint8_t data);
+ void bit1_w(offs_t offset, uint8_t data);
+ void bit2_w(offs_t offset, uint8_t data);
+ void bit3_w(offs_t offset, uint8_t data);
+ void bit4_w(offs_t offset, uint8_t data);
+ void bit5_w(offs_t offset, uint8_t data);
+ void bit6_w(offs_t offset, uint8_t data);
+ void bit7_w(offs_t offset, uint8_t data);
/* Bit mask specifying bits to be masked *out* */
void set_maskout(uint32_t maskout) { m_maskout = maskout; }