diff options
author | David Haywood <28625134+DavidHaywood@users.noreply.github.com> | 2022-06-15 11:37:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 06:37:26 -0400 |
commit | ac042242b7d04fe690a79b55a3b49af711885bb8 (patch) | |
tree | bdd5f0db1dcb04602f81e5970eacd28cabcb9700 /src/mame/machine | |
parent | 2d43dbb5f3e73ee38fa7f05276f6624d2e837b35 (diff) |
mpu4: move some crystal specifics into crystal state, remove some unneccessary parts of the bootleg chr emuation (#9932)
Diffstat (limited to 'src/mame/machine')
-rw-r--r-- | src/mame/machine/mpu4_characteriser_bootleg.cpp | 4 | ||||
-rw-r--r-- | src/mame/machine/mpu4_characteriser_bootleg.h | 15 |
2 files changed, 3 insertions, 16 deletions
diff --git a/src/mame/machine/mpu4_characteriser_bootleg.cpp b/src/mame/machine/mpu4_characteriser_bootleg.cpp index e26205b38dd..62dbb19e9bf 100644 --- a/src/mame/machine/mpu4_characteriser_bootleg.cpp +++ b/src/mame/machine/mpu4_characteriser_bootleg.cpp @@ -20,9 +20,7 @@ mpu4_characteriser_bl::mpu4_characteriser_bl(const machine_config &mconfig, cons } mpu4_characteriser_bl::mpu4_characteriser_bl(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, type, tag, owner, clock), - m_cpu(*this, finder_base::DUMMY_TAG), - m_allow_6809_cheat(false) + device_t(mconfig, type, tag, owner, clock) { } diff --git a/src/mame/machine/mpu4_characteriser_bootleg.h b/src/mame/machine/mpu4_characteriser_bootleg.h index 70402a4172b..85496f437ee 100644 --- a/src/mame/machine/mpu4_characteriser_bootleg.h +++ b/src/mame/machine/mpu4_characteriser_bootleg.h @@ -20,17 +20,6 @@ class mpu4_characteriser_bl : public device_t public: // construction/destruction mpu4_characteriser_bl(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - mpu4_characteriser_bl(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); - - template <typename T> void set_cpu_tag(T&& tag) - { - m_cpu.set_tag(std::forward<T>(tag)); - } - - void set_allow_6809_cheat(bool allow) - { - m_allow_6809_cheat = allow; - } void set_bl_fixed_return(uint8_t ret) { @@ -49,12 +38,12 @@ public: } protected: + mpu4_characteriser_bl(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); + virtual void device_start() override; virtual void device_reset() override; private: - optional_device<cpu_device> m_cpu; // needed for some of the protection 'cheats' - bool m_allow_6809_cheat; uint8_t m_blfixedreturn = 0; }; |