summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/7474.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/7474.h')
-rw-r--r--src/emu/machine/7474.h80
1 files changed, 40 insertions, 40 deletions
diff --git a/src/emu/machine/7474.h b/src/emu/machine/7474.h
index c246f36a31e..2174f409894 100644
--- a/src/emu/machine/7474.h
+++ b/src/emu/machine/7474.h
@@ -51,14 +51,14 @@
//**************************************************************************
#define MCFG_7474_ADD(_tag, _output_cb, _comp_output_cb) \
- MCFG_DEVICE_ADD(_tag, MACHINE_TTL7474, 0) \
- MCFG_7474_OUTPUT_CB(_output_cb) \
- MCFG_7474_COMP_OUTPUT_CB(_comp_output_cb)
+ MCFG_DEVICE_ADD(_tag, MACHINE_TTL7474, 0) \
+ MCFG_7474_OUTPUT_CB(_output_cb) \
+ MCFG_7474_COMP_OUTPUT_CB(_comp_output_cb)
#define MCFG_7474_REPLACE(_tag, _output_cb, _comp_output_cb) \
- MCFG_DEVICE_REPLACE(_tag, TTL7474, 0) \
- MCFG_7474_OUTPUT_CB(_output_cb) \
- MCFG_7474_COMP_OUTPUT_CB(_comp_output_cb)
+ MCFG_DEVICE_REPLACE(_tag, TTL7474, 0) \
+ MCFG_7474_OUTPUT_CB(_output_cb) \
+ MCFG_7474_COMP_OUTPUT_CB(_comp_output_cb)
#define MCFG_7474_OUTPUT_CB(_devcb) \
devcb = &ttl7474_device::set_output_cb(*device, DEVCB2_##_devcb); \
@@ -77,49 +77,49 @@
class ttl7474_device : public device_t
{
public:
- // construction/destruction
- ttl7474_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ // construction/destruction
+ ttl7474_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// static configuration helpers
template<class _Object> static devcb2_base &set_output_cb(device_t &device, _Object object) { return downcast<ttl7474_device &>(device).m_output_func.set_callback(object); }
template<class _Object> static devcb2_base &set_comp_output_cb(device_t &device, _Object object) { return downcast<ttl7474_device &>(device).m_comp_output_func.set_callback(object); }
// public interfaces
- DECLARE_WRITE_LINE_MEMBER( clear_w );
- DECLARE_WRITE_LINE_MEMBER( preset_w );
- DECLARE_WRITE_LINE_MEMBER( clock_w );
- DECLARE_WRITE_LINE_MEMBER( d_w );
- DECLARE_READ_LINE_MEMBER( output_r );
- DECLARE_READ_LINE_MEMBER( output_comp_r ); // NOT strictly the same as !output_r()
+ DECLARE_WRITE_LINE_MEMBER( clear_w );
+ DECLARE_WRITE_LINE_MEMBER( preset_w );
+ DECLARE_WRITE_LINE_MEMBER( clock_w );
+ DECLARE_WRITE_LINE_MEMBER( d_w );
+ DECLARE_READ_LINE_MEMBER( output_r );
+ DECLARE_READ_LINE_MEMBER( output_comp_r ); // NOT strictly the same as !output_r()
protected:
- // device-level overrides
- virtual void device_start();
- virtual void device_reset();
- virtual void device_post_load() { }
- virtual void device_clock_changed() { }
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+ virtual void device_post_load() { }
+ virtual void device_clock_changed() { }
private:
- // callbacks
- devcb2_write_line m_output_func;
- devcb2_write_line m_comp_output_func;
-
- // inputs
- UINT8 m_clear; // pin 1/13
- UINT8 m_preset; // pin 4/10
- UINT8 m_clk; // pin 3/11
- UINT8 m_d; // pin 2/12
-
- // outputs
- UINT8 m_output; // pin 5/9
- UINT8 m_output_comp; // pin 6/8
-
- // internal
- UINT8 m_last_clock;
- UINT8 m_last_output;
- UINT8 m_last_output_comp;
-
- void update();
- void init();
+ // callbacks
+ devcb2_write_line m_output_func;
+ devcb2_write_line m_comp_output_func;
+
+ // inputs
+ UINT8 m_clear; // pin 1/13
+ UINT8 m_preset; // pin 4/10
+ UINT8 m_clk; // pin 3/11
+ UINT8 m_d; // pin 2/12
+
+ // outputs
+ UINT8 m_output; // pin 5/9
+ UINT8 m_output_comp; // pin 6/8
+
+ // internal
+ UINT8 m_last_clock;
+ UINT8 m_last_output;
+ UINT8 m_last_output_comp;
+
+ void update();
+ void init();
};