summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/baraduke.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/baraduke.cpp')
-rw-r--r--src/mame/drivers/baraduke.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mame/drivers/baraduke.cpp b/src/mame/drivers/baraduke.cpp
index ec556cc3f71..c80d9c4635e 100644
--- a/src/mame/drivers/baraduke.cpp
+++ b/src/mame/drivers/baraduke.cpp
@@ -154,8 +154,8 @@ READ8_MEMBER(baraduke_state::inputport_r)
WRITE8_MEMBER(baraduke_state::baraduke_lamps_w)
{
- output().set_led_value(0,data & 0x08);
- output().set_led_value(1,data & 0x10);
+ m_lamp[0] = BIT(data, 3);
+ m_lamp[1] = BIT(data, 4);
}
WRITE8_MEMBER(baraduke_state::baraduke_irq_ack_w)
@@ -372,6 +372,11 @@ static GFXDECODE_START( gfx_baraduke )
GFXDECODE_END
+void baraduke_state::machine_start()
+{
+ m_lamp.resolve();
+}
+
MACHINE_CONFIG_START(baraduke_state::baraduke)