From b711b1a007c3a4a75e78eb88f9a6afe4d4180728 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 3 Sep 2012 13:56:17 +0000 Subject: conversion of legacy devices into modern wip (no whatsnew) --- src/mess/machine/mc68328.c | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'src/mess/machine/mc68328.c') 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(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); +} + + -- cgit v1.2.3-70-g09d2