fix for Amiga regression, this made infinite loop (nw)

This commit is contained in:
Miodrag Milanovic 2014-03-31 07:56:33 +00:00
parent ebe55c56d6
commit f60bf10bf7
2 changed files with 4 additions and 6 deletions

View File

@ -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)

View File

@ -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);