diff options
author | 2018-05-20 19:27:20 +0200 | |
---|---|---|
committer | 2018-05-20 13:27:20 -0400 | |
commit | 2beba4ce73fad917c7159a39939bace54f76494b (patch) | |
tree | e9d33c059bc5045f13d0c1748f0a044650370b8d /src/devices/bus/msx_slot | |
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/msx_slot')
-rw-r--r-- | src/devices/bus/msx_slot/disk.cpp | 6 | ||||
-rw-r--r-- | src/devices/bus/msx_slot/disk.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/devices/bus/msx_slot/disk.cpp b/src/devices/bus/msx_slot/disk.cpp index 10a319ca489..39ec248e3f2 100644 --- a/src/devices/bus/msx_slot/disk.cpp +++ b/src/devices/bus/msx_slot/disk.cpp @@ -83,6 +83,7 @@ void msx_slot_disk_device::device_start() msx_slot_wd_disk_device::msx_slot_wd_disk_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) : msx_slot_disk_device(mconfig, type, tag, owner, clock) , m_fdc(nullptr) + , m_led(*this, "led0") { } @@ -91,6 +92,7 @@ void msx_slot_wd_disk_device::device_start() { msx_slot_disk_device::device_start(); + m_led.resolve(); m_fdc = owner()->subdevice<wd_fdc_analog_device_base>(m_fdc_tag); if (m_fdc == nullptr) @@ -200,7 +202,7 @@ void msx_slot_disk1_device::set_control(uint8_t data) if ((old_m_control ^ m_control) & 0x40) { - machine().output().set_led_value(0, !(m_control & 0x40)); + m_led = BIT(~m_control, 6); } } @@ -349,7 +351,7 @@ void msx_slot_disk2_device::set_control(uint8_t data) if ((old_m_control ^ m_control) & 0x40) { - machine().output().set_led_value(0, !(m_control & 0x40)); + m_led = BIT(~m_control, 6); } } diff --git a/src/devices/bus/msx_slot/disk.h b/src/devices/bus/msx_slot/disk.h index d619cb1aa25..6b3c4ab055a 100644 --- a/src/devices/bus/msx_slot/disk.h +++ b/src/devices/bus/msx_slot/disk.h @@ -109,6 +109,7 @@ protected: virtual void device_start() override; wd_fdc_analog_device_base *m_fdc; + output_finder<> m_led; }; |