Added additional members for compatibility (nw)

This commit is contained in:
Miodrag Milanovic 2016-04-18 14:18:33 +02:00
parent c47bd3a937
commit 55d3e544e0
2 changed files with 26 additions and 0 deletions

View File

@ -41,6 +41,16 @@ WRITE8_MEMBER( generic_latch_8_device::write )
machine().scheduler().synchronize(timer_expired_delegate(FUNC(generic_latch_8_device::sync_callback), this), data);
}
WRITE8_MEMBER( generic_latch_8_device::preset_w )
{
m_latched_value = 0xff;
}
WRITE8_MEMBER( generic_latch_8_device::clear_w )
{
m_latched_value = 0x00;
}
WRITE_LINE_MEMBER( generic_latch_8_device::preset_w )
{
m_latched_value = 0xff;
@ -113,6 +123,16 @@ WRITE16_MEMBER( generic_latch_16_device::write )
machine().scheduler().synchronize(timer_expired_delegate(FUNC(generic_latch_16_device::sync_callback), this), data);
}
WRITE16_MEMBER( generic_latch_16_device::preset_w )
{
m_latched_value = 0xffff;
}
WRITE16_MEMBER( generic_latch_16_device::clear_w )
{
m_latched_value = 0x0000;
}
WRITE_LINE_MEMBER( generic_latch_16_device::preset_w )
{
m_latched_value = 0xffff;

View File

@ -35,6 +35,9 @@ public:
DECLARE_READ8_MEMBER( read );
DECLARE_WRITE8_MEMBER( write );
DECLARE_WRITE8_MEMBER( preset_w );
DECLARE_WRITE8_MEMBER( clear_w );
DECLARE_WRITE_LINE_MEMBER( preset_w );
DECLARE_WRITE_LINE_MEMBER( clear_w );
@ -61,6 +64,9 @@ public:
DECLARE_READ16_MEMBER( read );
DECLARE_WRITE16_MEMBER( write );
DECLARE_WRITE16_MEMBER( preset_w );
DECLARE_WRITE16_MEMBER( clear_w );
DECLARE_WRITE_LINE_MEMBER( preset_w );
DECLARE_WRITE_LINE_MEMBER( clear_w );