summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video/vic4567.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/video/vic4567.h')
-rw-r--r--src/mess/video/vic4567.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mess/video/vic4567.h b/src/mess/video/vic4567.h
index 4dc36dd5b09..fd0f53a39c3 100644
--- a/src/mess/video/vic4567.h
+++ b/src/mess/video/vic4567.h
@@ -137,7 +137,26 @@ struct _vic3_interface
DEVICE CONFIGURATION MACROS
***************************************************************************/
-DECLARE_LEGACY_DEVICE(VIC3, vic3);
+class vic3_device : public device_t
+{
+public:
+ vic3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~vic3_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 VIC3;
+
#define MCFG_VIC3_ADD(_tag, _interface) \
MCFG_DEVICE_ADD(_tag, VIC3, 0) \