summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/gen_latch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/gen_latch.cpp')
-rw-r--r--src/devices/machine/gen_latch.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/machine/gen_latch.cpp b/src/devices/machine/gen_latch.cpp
index 203a1849bb3..7f1b382e0ab 100644
--- a/src/devices/machine/gen_latch.cpp
+++ b/src/devices/machine/gen_latch.cpp
@@ -89,6 +89,18 @@ void generic_latch_base_device::set_latch_written(bool latch_written)
}
}
+READ8_MEMBER(generic_latch_base_device::acknowledge_r)
+{
+ if (!machine().side_effects_disabled())
+ set_latch_written(false);
+ return space.unmap();
+}
+
+WRITE8_MEMBER(generic_latch_base_device::acknowledge_w)
+{
+ set_latch_written(false);
+}
+
//-------------------------------------------------
// generic_latch_8_device - constructor
//-------------------------------------------------
@@ -131,18 +143,6 @@ WRITE_LINE_MEMBER( generic_latch_8_device::clear )
m_latched_value = 0x00;
}
-READ8_MEMBER( generic_latch_8_device::acknowledge_r )
-{
- if (!machine().side_effects_disabled())
- set_latch_written(false);
- return space.unmap();
-}
-
-WRITE8_MEMBER( generic_latch_8_device::acknowledge_w )
-{
- set_latch_written(false);
-}
-
//-------------------------------------------------
// soundlatch_sync_callback - time-delayed
// callback to set a latch value