diff options
Diffstat (limited to 'src/devices/machine/gen_latch.h')
-rw-r--r-- | src/devices/machine/gen_latch.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/devices/machine/gen_latch.h b/src/devices/machine/gen_latch.h index f00a16a083a..c0bee635b27 100644 --- a/src/devices/machine/gen_latch.h +++ b/src/devices/machine/gen_latch.h @@ -46,10 +46,6 @@ DECLARE_DEVICE_TYPE(GENERIC_LATCH_16, generic_latch_16_device) class generic_latch_base_device : public device_t { -protected: - // construction/destruction - generic_latch_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); - public: // configuration template <class Object> devcb_base &set_data_pending_callback(Object &&cb) { return m_data_pending_cb.set_callback(std::forward<Object>(cb)); } @@ -58,6 +54,9 @@ public: DECLARE_READ_LINE_MEMBER(pending_r); protected: + // construction/destruction + generic_latch_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); + virtual void device_start() override; virtual void device_reset() override; @@ -80,7 +79,7 @@ class generic_latch_8_device : public generic_latch_base_device { public: // construction/destruction - generic_latch_8_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + generic_latch_8_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); DECLARE_READ8_MEMBER( read ); DECLARE_WRITE8_MEMBER( write ); @@ -111,7 +110,7 @@ class generic_latch_16_device : public generic_latch_base_device { public: // construction/destruction - generic_latch_16_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + generic_latch_16_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); DECLARE_READ16_MEMBER( read ); DECLARE_WRITE16_MEMBER( write ); @@ -132,5 +131,4 @@ private: u16 m_latched_value; }; - #endif // MAME_MACHINE_GEN_LATCH_H |