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/mc6854.h | |
parent | f552908ea962ecdd7e94ea609c84144815b64557 (diff) |
conversion of legacy devices into modern wip (no whatsnew)
Diffstat (limited to 'src/mess/machine/mc6854.h')
-rw-r--r-- | src/mess/machine/mc6854.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mess/machine/mc6854.h b/src/mess/machine/mc6854.h index e0b13373625..a7a44cb8c7c 100644 --- a/src/mess/machine/mc6854.h +++ b/src/mess/machine/mc6854.h @@ -9,7 +9,26 @@ #ifndef MC6854_H #define MC6854_H -DECLARE_LEGACY_DEVICE(MC6854, mc6854); +class mc6854_device : public device_t +{ +public: + mc6854_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + ~mc6854_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 MC6854; + /* we provide two interfaces: - a bit-based interface: out_tx, set_rx |