summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/e05a03.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-03 13:56:17 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-03 13:56:17 +0000
commitb711b1a007c3a4a75e78eb88f9a6afe4d4180728 (patch)
tree1498465a0134d7b039fce9271d2b388d218425d4 /src/mess/machine/e05a03.c
parentf552908ea962ecdd7e94ea609c84144815b64557 (diff)
conversion of legacy devices into modern wip (no whatsnew)
Diffstat (limited to 'src/mess/machine/e05a03.c')
-rw-r--r--src/mess/machine/e05a03.c40
1 files changed, 38 insertions, 2 deletions
diff --git a/src/mess/machine/e05a03.c b/src/mess/machine/e05a03.c
index 3e394d83171..5a8ea7a5ca0 100644
--- a/src/mess/machine/e05a03.c
+++ b/src/mess/machine/e05a03.c
@@ -56,7 +56,7 @@ INLINE e05a03_state *get_safe_token(device_t *device)
assert(device != NULL);
assert(device->type() == E05A03);
- return (e05a03_state *)downcast<legacy_device_base *>(device)->token();
+ return (e05a03_state *)downcast<e05a03_device *>(device)->token();
}
@@ -238,4 +238,40 @@ WRITE_LINE_DEVICE_HANDLER( e05a03_init_w )
e05a03_resi_w(device, state);
}
-DEFINE_LEGACY_DEVICE(E05A03, e05a03);
+const device_type E05A03 = &device_creator<e05a03_device>;
+
+e05a03_device::e05a03_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, E05A03, "E05A03", tag, owner, clock)
+{
+ m_token = global_alloc_array_clear(UINT8, sizeof(e05a03_state));
+}
+
+//-------------------------------------------------
+// device_config_complete - perform any
+// operations now that the configuration is
+// complete
+//-------------------------------------------------
+
+void e05a03_device::device_config_complete()
+{
+}
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void e05a03_device::device_start()
+{
+ DEVICE_START_NAME( e05a03 )(this);
+}
+
+//-------------------------------------------------
+// device_reset - device-specific reset
+//-------------------------------------------------
+
+void e05a03_device::device_reset()
+{
+ DEVICE_RESET_NAME( e05a03 )(this);
+}
+
+