summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video/733_asr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/video/733_asr.c')
-rw-r--r--src/mess/video/733_asr.c40
1 files changed, 38 insertions, 2 deletions
diff --git a/src/mess/video/733_asr.c b/src/mess/video/733_asr.c
index dbc66b14da8..0a5740bb0ba 100644
--- a/src/mess/video/733_asr.c
+++ b/src/mess/video/733_asr.c
@@ -167,7 +167,7 @@ INLINE asr_t *get_safe_token(device_t *device)
assert(device != NULL);
assert(device->type() == ASR733);
- return (asr_t *)downcast<legacy_device_base *>(device)->token();
+ return (asr_t *)downcast<asr733_device *>(device)->token();
}
static DEVICE_START( asr733 )
@@ -236,7 +236,43 @@ DEVICE_GET_INFO( asr733 )
}
}
-DEFINE_LEGACY_DEVICE(ASR733, asr733);
+const device_type ASR733 = &device_creator<asr733_device>;
+
+asr733_device::asr733_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, ASR733, "733 ASR", tag, owner, clock)
+{
+ m_token = global_alloc_array_clear(UINT8, sizeof(asr_t));
+}
+
+//-------------------------------------------------
+// device_config_complete - perform any
+// operations now that the configuration is
+// complete
+//-------------------------------------------------
+
+void asr733_device::device_config_complete()
+{
+}
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void asr733_device::device_start()
+{
+ DEVICE_START_NAME( asr733 )(this);
+}
+
+//-------------------------------------------------
+// device_reset - device-specific reset
+//-------------------------------------------------
+
+void asr733_device::device_reset()
+{
+ DEVICE_RESET_NAME( asr733 )(this);
+}
+
+
/* write a single char on screen */
static void asr_draw_char(device_t *device, int character, int x, int y, int color)