summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/vip.cpp
diff options
context:
space:
mode:
authorGravatarGravatar wilbertpol <wilbertpol@users.noreply.github.com>2018-05-20 19:27:20 +0200
committerGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2018-05-20 13:27:20 -0400
commit2beba4ce73fad917c7159a39939bace54f76494b (patch)
treee9d33c059bc5045f13d0c1748f0a044650370b8d /src/mame/drivers/vip.cpp
parentacf93837ac21b2b0bb003d1649b893200c269812 (diff)
downloadmame-2beba4ce73fad917c7159a39939bace54f76494b.tar.xz
mame-2beba4ce73fad917c7159a39939bace54f76494b.zip
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/mame/drivers/vip.cpp')
-rw-r--r--src/mame/drivers/vip.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mame/drivers/vip.cpp b/src/mame/drivers/vip.cpp
index cedb5734e80..5772120998a 100644
--- a/src/mame/drivers/vip.cpp
+++ b/src/mame/drivers/vip.cpp
@@ -464,7 +464,7 @@ READ_LINE_MEMBER( vip_state::ef1_r )
READ_LINE_MEMBER( vip_state::ef2_r )
{
- output().set_led_value(LED_TAPE, m_cassette->input() > 0);
+ m_led[LED_TAPE] = m_cassette->input() > 0 ? 1 : 0;
return (m_cassette->input() < 0) ? ASSERT_LINE : CLEAR_LINE;
}
@@ -485,7 +485,7 @@ WRITE_LINE_MEMBER( vip_state::q_w )
m_beeper->write(machine().dummy_space(), NODE_01, state);
// Q led
- output().set_led_value(LED_Q, state);
+ m_led[LED_Q] = state ? 1 : 0;
// tape output
m_cassette->output(state ? 1.0 : -1.0);
@@ -621,8 +621,10 @@ void vip_state::machine_start()
ram[addr] = machine().rand() & 0xff;
}
+ m_led.resolve();
+
// turn on power LED
- output().set_led_value(LED_POWER, 1);
+ m_led[LED_POWER] = 1;
// reset sound
m_beeper->write(machine().dummy_space(), NODE_01, 0);