diff --git a/src/emu/machine/6526cia.c b/src/emu/machine/6526cia.c index 1eb80c81fc7..7794b0b62e7 100644 --- a/src/emu/machine/6526cia.c +++ b/src/emu/machine/6526cia.c @@ -498,7 +498,7 @@ void legacy_mos6526_device::clock_tod() cnt_w -------------------------------------------------*/ -void legacy_mos6526_device::cnt_w(UINT8 state) +WRITE_LINE_MEMBER(legacy_mos6526_device::cnt_w) { /* is this a rising edge? */ if (!m_cnt && state) @@ -543,7 +543,7 @@ void legacy_mos6526_device::cnt_w(UINT8 state) m_cnt = state; } -void legacy_mos6526_device::flag_w(UINT8 state) +WRITE_LINE_MEMBER(legacy_mos6526_device::flag_w) { /* falling edge */ if (m_flag && !state) diff --git a/src/emu/machine/6526cia.h b/src/emu/machine/6526cia.h index 5eb32c1d47b..e44a36bfbe4 100644 --- a/src/emu/machine/6526cia.h +++ b/src/emu/machine/6526cia.h @@ -117,16 +117,14 @@ public: /* serial counter */ DECLARE_READ_LINE_MEMBER( cnt_r ) { return m_cnt; } - void cnt_w(UINT8 state); - DECLARE_WRITE_LINE_MEMBER( cnt_w ) { cnt_w(state); } + DECLARE_WRITE_LINE_MEMBER( cnt_w ); /* serial port */ DECLARE_READ_LINE_MEMBER( sp_r ) { return m_sp; } DECLARE_WRITE_LINE_MEMBER( sp_w ) { m_sp = state; } /* flag */ - void flag_w(UINT8 state); - DECLARE_WRITE_LINE_MEMBER( flag_w ) { flag_w(state); } + DECLARE_WRITE_LINE_MEMBER( flag_w ); /* port mask */ void set_port_mask_value(int port, int data);