summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/gen_latch.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-18 14:18:33 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-18 14:18:33 +0200
commit55d3e544e013174880c8f208264683aac6d711f9 (patch)
treebce76df6fd36d58be5ec034387a67cc8869bdeb5 /src/devices/machine/gen_latch.cpp
parentc47bd3a9370dde25764b2153c235f6c57acaacda (diff)
Added additional members for compatibility (nw)
Diffstat (limited to 'src/devices/machine/gen_latch.cpp')
-rw-r--r--src/devices/machine/gen_latch.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/devices/machine/gen_latch.cpp b/src/devices/machine/gen_latch.cpp
index 54982bc7e85..a72305bcaa4 100644
--- a/src/devices/machine/gen_latch.cpp
+++ b/src/devices/machine/gen_latch.cpp
@@ -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;