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/apollo.c | |
parent | f552908ea962ecdd7e94ea609c84144815b64557 (diff) |
conversion of legacy devices into modern wip (no whatsnew)
Diffstat (limited to 'src/mess/machine/apollo.c')
-rw-r--r-- | src/mess/machine/apollo.c | 55 |
1 files changed, 52 insertions, 3 deletions
diff --git a/src/mess/machine/apollo.c b/src/mess/machine/apollo.c index 199317a285b..fb0e7779bf0 100644 --- a/src/mess/machine/apollo.c +++ b/src/mess/machine/apollo.c @@ -150,7 +150,7 @@ static DEVICE_RESET(apollo_config) device get info callback -------------------------------------------------*/ -static DEVICE_GET_INFO(apollo_config) +DEVICE_GET_INFO(apollo_config) { switch (state) { @@ -167,9 +167,58 @@ static DEVICE_GET_INFO(apollo_config) } } -static DECLARE_LEGACY_DEVICE(APOLLO_CONF, apollo_config); +class apollo_config_device : public device_t +{ +public: + apollo_config_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); +protected: + // device-level overrides + virtual void device_config_complete(); + virtual void device_start(); + virtual void device_reset(); +private: + // internal state +}; + +extern const device_type APOLLO_CONF; + + +const device_type APOLLO_CONF = &device_creator<apollo_config_device>; + +apollo_config_device::apollo_config_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : device_t(mconfig, APOLLO_CONF, "Apollo Configuration", tag, owner, clock) +{ +} + +//------------------------------------------------- +// device_config_complete - perform any +// operations now that the configuration is +// complete +//------------------------------------------------- + +void apollo_config_device::device_config_complete() +{ +} + +//------------------------------------------------- +// device_start - device-specific startup +//------------------------------------------------- + +void apollo_config_device::device_start() +{ + DEVICE_START_NAME( apollo_config )(this); +} + +//------------------------------------------------- +// device_reset - device-specific reset +//------------------------------------------------- + +void apollo_config_device::device_reset() +{ + DEVICE_RESET_NAME( apollo_config )(this); +} + -DEFINE_LEGACY_DEVICE(APOLLO_CONF, apollo_config); //########################################################################## // machine/apollo_csr.c - APOLLO DS3500 CPU Control and Status registers |