summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/7404.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/7404.h')
-rw-r--r--src/devices/machine/7404.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/devices/machine/7404.h b/src/devices/machine/7404.h
index 04f5f981065..0cd68d548de 100644
--- a/src/devices/machine/7404.h
+++ b/src/devices/machine/7404.h
@@ -69,33 +69,33 @@ public:
template <std::size_t Bit> auto y_cb() { return m_y_func[Bit].bind(); }
// public interfaces
- DECLARE_WRITE_LINE_MEMBER( a1_w );
- DECLARE_WRITE_LINE_MEMBER( a2_w );
- DECLARE_WRITE_LINE_MEMBER( a3_w );
- DECLARE_WRITE_LINE_MEMBER( a4_w );
- DECLARE_WRITE_LINE_MEMBER( a5_w );
- DECLARE_WRITE_LINE_MEMBER( a6_w );
-
- DECLARE_READ_LINE_MEMBER( y1_r );
- DECLARE_READ_LINE_MEMBER( y2_r );
- DECLARE_READ_LINE_MEMBER( y3_r );
- DECLARE_READ_LINE_MEMBER( y4_r );
- DECLARE_READ_LINE_MEMBER( y5_r );
- DECLARE_READ_LINE_MEMBER( y6_r );
+ void a1_w(int state);
+ void a2_w(int state);
+ void a3_w(int state);
+ void a4_w(int state);
+ void a5_w(int state);
+ void a6_w(int state);
+
+ int y1_r();
+ int y2_r();
+ int y3_r();
+ int y4_r();
+ int y5_r();
+ int y6_r();
protected:
void a_w(uint8_t line, uint8_t state);
uint8_t y_r(uint8_t line);
// device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
+ virtual void device_start() override ATTR_COLD;
+ virtual void device_reset() override ATTR_COLD;
private:
void update();
// callbacks
- devcb_write_line m_y_func[6];
+ devcb_write_line::array<6> m_y_func;
// inputs
uint8_t m_a; // pins 1,3,5,9,11,13