summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/suna16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/suna16.cpp')
-rw-r--r--src/mame/drivers/suna16.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/suna16.cpp b/src/mame/drivers/suna16.cpp
index 7b7a83ab1d8..380dba6b320 100644
--- a/src/mame/drivers/suna16.cpp
+++ b/src/mame/drivers/suna16.cpp
@@ -59,10 +59,10 @@ WRITE16_MEMBER(suna16_state::bssoccer_leds_w)
{
if (ACCESSING_BITS_0_7)
{
- output().set_led_value(0, data & 0x01);
- output().set_led_value(1, data & 0x02);
- output().set_led_value(2, data & 0x04);
- output().set_led_value(3, data & 0x08);
+ m_led[0] = BIT(data, 0);
+ m_led[1] = BIT(data, 1);
+ m_led[2] = BIT(data, 2);
+ m_led[3] = BIT(data, 3);
machine().bookkeeping().coin_counter_w(0, data & 0x10);
}
if (data & ~0x1f) logerror("CPU#0 PC %06X - Leds unknown bits: %04X\n", m_maincpu->pc(), data);
@@ -74,8 +74,8 @@ WRITE16_MEMBER(suna16_state::uballoon_leds_w)
if (ACCESSING_BITS_0_7)
{
machine().bookkeeping().coin_counter_w(0, data & 0x01);
- output().set_led_value(0, data & 0x02);
- output().set_led_value(1, data & 0x04);
+ m_led[0] = BIT(data, 1);
+ m_led[1] = BIT(data, 2);
}
if (data & ~0x07) logerror("CPU#0 PC %06X - Leds unknown bits: %04X\n", m_maincpu->pc(), data);
}