diff options
author | wilbertpol <wilbertpol@users.noreply.github.com> | 2018-05-20 19:27:20 +0200 |
---|---|---|
committer | R. Belmont <rb6502@users.noreply.github.com> | 2018-05-20 13:27:20 -0400 |
commit | 2beba4ce73fad917c7159a39939bace54f76494b (patch) | |
tree | e9d33c059bc5045f13d0c1748f0a044650370b8d /src/devices/bus/ieee488/c2040.cpp | |
parent | acf93837ac21b2b0bb003d1649b893200c269812 (diff) |
Replace set_led_value and set_lamp_value with output_finders. [Wilbe… (#3592)
* Replace set_led_value and set_lamp_value with output_finders. [Wilbert Pol]
* segaufo: keep the 2 bit lamp outputs
Diffstat (limited to 'src/devices/bus/ieee488/c2040.cpp')
-rw-r--r-- | src/devices/bus/ieee488/c2040.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/bus/ieee488/c2040.cpp b/src/devices/bus/ieee488/c2040.cpp index aee0f5a895c..609cea7cdc2 100644 --- a/src/devices/bus/ieee488/c2040.cpp +++ b/src/devices/bus/ieee488/c2040.cpp @@ -365,13 +365,13 @@ WRITE8_MEMBER( c2040_device::riot1_pb_w ) */ // activity led 1 - machine().output().set_led_value(LED_ACT1, BIT(data, 3)); + m_led[LED_ACT1] = BIT(data, 3); // activity led 0 - machine().output().set_led_value(LED_ACT0, BIT(data, 4)); + m_led[LED_ACT0] = BIT(data, 4); // error led - machine().output().set_led_value(LED_ERR, BIT(data, 5)); + m_led[LED_ERR] = BIT(data, 5); } @@ -650,6 +650,7 @@ c2040_device::c2040_device(const machine_config &mconfig, device_type type, cons m_fdc(*this, FDC_TAG), m_gcr(*this, "gcr"), m_address(*this, "ADDRESS"), + m_led(*this, "led%u", 0U), m_rfdo(1), m_daco(1), m_atna(1), @@ -689,6 +690,7 @@ c4040_device::c4040_device(const machine_config &mconfig, const char *tag, devic void c2040_device::device_start() { + m_led.resolve(); // install image callbacks m_fdc->set_floppy(m_floppy0, m_floppy1); |