summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/buffer.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
commitf88cefad27a1737c76e09d99c9fb43e173506081 (patch)
tree2d8167d03579c46e226471747eb4407bd00ed6fa /src/devices/machine/buffer.c
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/machine/buffer.c')
-rw-r--r--src/devices/machine/buffer.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/devices/machine/buffer.c b/src/devices/machine/buffer.c
new file mode 100644
index 00000000000..6b2058c6937
--- /dev/null
+++ b/src/devices/machine/buffer.c
@@ -0,0 +1,17 @@
+// license:BSD-3-Clause
+// copyright-holders:smf
+#include "emu.h"
+#include "buffer.h"
+
+const device_type INPUT_BUFFER = &device_creator<input_buffer_device>;
+
+input_buffer_device::input_buffer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, INPUT_BUFFER, "Input Buffer", tag, owner, clock, "input_buffer", __FILE__),
+ m_input_data(0xff)
+{
+}
+
+void input_buffer_device::device_start()
+{
+ save_item(NAME(m_input_data));
+}