summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/74148.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/74148.h')
-rw-r--r--src/devices/machine/74148.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/devices/machine/74148.h b/src/devices/machine/74148.h
index bc1a52cf64c..88039005ed6 100644
--- a/src/devices/machine/74148.h
+++ b/src/devices/machine/74148.h
@@ -45,12 +45,6 @@
#pragma once
-
-typedef device_delegate<void (void)> ttl74148_output_delegate;
-
-#define TTL74148_OUTPUT_CB(_name) void _name(void)
-
-
class ttl74148_device : public device_t
{
public:
@@ -58,6 +52,7 @@ public:
~ttl74148_device() {}
template <typename Object> void set_output_callback(Object &&cb) { m_output_cb = std::forward<Object>(cb); }
+ auto out_cb() { return m_output_cb.bind(); }
/* must call update() after setting the inputs */
void update();
@@ -74,7 +69,7 @@ protected:
virtual void device_reset() override;
private:
// internal state
- ttl74148_output_delegate m_output_cb;
+ devcb_write8 m_output_cb;
/* inputs */
int m_input_lines[8]; /* pins 1-4,10-13 */
@@ -93,9 +88,4 @@ private:
DECLARE_DEVICE_TYPE(TTL74148, ttl74148_device)
-
-#define MCFG_74148_OUTPUT_CB(_class, _method) \
- downcast<ttl74148_device &>(*device).set_output_callback(ttl74148_output_delegate(&_class::_method, #_class "::" #_method, this));
-
-
#endif // MAME_DEVICES_MACHINE_74148_H