summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/mc68328.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/mc68328.c
parentf552908ea962ecdd7e94ea609c84144815b64557 (diff)
conversion of legacy devices into modern wip (no whatsnew)
Diffstat (limited to 'src/mess/machine/mc68328.c')
-rw-r--r--src/mess/machine/mc68328.c38
1 files changed, 37 insertions, 1 deletions
diff --git a/src/mess/machine/mc68328.c b/src/mess/machine/mc68328.c
index 6f2e9550b21..74e6daf723a 100644
--- a/src/mess/machine/mc68328.c
+++ b/src/mess/machine/mc68328.c
@@ -2829,4 +2829,40 @@ DEVICE_GET_INFO( mc68328 )
}
}
-DEFINE_LEGACY_DEVICE(MC68328, mc68328);
+const device_type MC68328 = &device_creator<mc68328_device>;
+
+mc68328_device::mc68328_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, MC68328, "Motorola MC68328 (DragonBall) Integrated Processor", tag, owner, clock)
+{
+ m_token = global_alloc_array_clear(UINT8, sizeof(mc68328_t));
+}
+
+//-------------------------------------------------
+// device_config_complete - perform any
+// operations now that the configuration is
+// complete
+//-------------------------------------------------
+
+void mc68328_device::device_config_complete()
+{
+}
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void mc68328_device::device_start()
+{
+ DEVICE_START_NAME( mc68328 )(this);
+}
+
+//-------------------------------------------------
+// device_reset - device-specific reset
+//-------------------------------------------------
+
+void mc68328_device::device_reset()
+{
+ DEVICE_RESET_NAME( mc68328 )(this);
+}
+
+