diff options
author | 2012-09-03 13:56:17 +0000 | |
---|---|---|
committer | 2012-09-03 13:56:17 +0000 | |
commit | b711b1a007c3a4a75e78eb88f9a6afe4d4180728 (patch) | |
tree | 1498465a0134d7b039fce9271d2b388d218425d4 /src/mess/machine/upd71071.h | |
parent | f552908ea962ecdd7e94ea609c84144815b64557 (diff) |
conversion of legacy devices into modern wip (no whatsnew)
Diffstat (limited to 'src/mess/machine/upd71071.h')
-rw-r--r-- | src/mess/machine/upd71071.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/mess/machine/upd71071.h b/src/mess/machine/upd71071.h index a5b644a557f..fad69044281 100644 --- a/src/mess/machine/upd71071.h +++ b/src/mess/machine/upd71071.h @@ -14,7 +14,25 @@ struct _upd71071_interface int upd71071_dmarq(device_t* device,int state,int channel); -DECLARE_LEGACY_DEVICE(UPD71071, upd71071); +class upd71071_device : public device_t +{ +public: + upd71071_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + ~upd71071_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(); +private: + // internal state + void *m_token; +}; + +extern const device_type UPD71071; + #define MCFG_UPD71071_ADD(_tag, _config) \ MCFG_DEVICE_ADD(_tag, UPD71071, 0) \ |