summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/buggychl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/buggychl.h')
-rw-r--r--src/mame/machine/buggychl.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mame/machine/buggychl.h b/src/mame/machine/buggychl.h
index 8ff41049115..4ed33f5bb73 100644
--- a/src/mame/machine/buggychl.h
+++ b/src/mame/machine/buggychl.h
@@ -4,4 +4,23 @@ WRITE8_DEVICE_HANDLER( buggychl_mcu_w );
READ8_DEVICE_HANDLER( buggychl_mcu_r );
READ8_DEVICE_HANDLER( buggychl_mcu_status_r );
-DECLARE_LEGACY_DEVICE(BUGGYCHL_MCU, buggychl_mcu);
+class buggychl_mcu_device : public device_t
+{
+public:
+ buggychl_mcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~buggychl_mcu_device() { global_free(m_token); }
+
+ // access to legacy token
+ void *token() const { assert(m_token != NULL); return m_token; }
+protected:
+ // device-level overrides
+ virtual void device_config_complete();
+ virtual void device_start();
+ virtual void device_reset();
+private:
+ // internal state
+ void *m_token;
+};
+
+extern const device_type BUGGYCHL_MCU;
+