summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/mc6843.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/mc6843.c
parentf552908ea962ecdd7e94ea609c84144815b64557 (diff)
conversion of legacy devices into modern wip (no whatsnew)
Diffstat (limited to 'src/mess/machine/mc6843.c')
-rw-r--r--src/mess/machine/mc6843.c40
1 files changed, 38 insertions, 2 deletions
diff --git a/src/mess/machine/mc6843.c b/src/mess/machine/mc6843.c
index ca16b31d8dc..7ebf42461f2 100644
--- a/src/mess/machine/mc6843.c
+++ b/src/mess/machine/mc6843.c
@@ -111,7 +111,7 @@ INLINE mc6843_t* get_safe_token( device_t *device )
{
assert( device != NULL );
assert( device->type() == MC6843 );
- return (mc6843_t*) downcast<legacy_device_base *>(device)->token();
+ return (mc6843_t*) downcast<mc6843_device *>(device)->token();
}
@@ -851,5 +851,41 @@ DEVICE_GET_INFO( mc6843 ) {
}
}
-DEFINE_LEGACY_DEVICE(MC6843, mc6843);
+const device_type MC6843 = &device_creator<mc6843_device>;
+
+mc6843_device::mc6843_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, MC6843, "Motorola MC6843 floppy controller", tag, owner, clock)
+{
+ m_token = global_alloc_array_clear(UINT8, sizeof(mc6843_t));
+}
+
+//-------------------------------------------------
+// device_config_complete - perform any
+// operations now that the configuration is
+// complete
+//-------------------------------------------------
+
+void mc6843_device::device_config_complete()
+{
+}
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void mc6843_device::device_start()
+{
+ DEVICE_START_NAME( mc6843 )(this);
+}
+
+//-------------------------------------------------
+// device_reset - device-specific reset
+//-------------------------------------------------
+
+void mc6843_device::device_reset()
+{
+ DEVICE_RESET_NAME( mc6843 )(this);
+}
+
+