summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/cischeat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cischeat.cpp')
-rw-r--r--src/mame/drivers/cischeat.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/cischeat.cpp b/src/mame/drivers/cischeat.cpp
index 6457a7f5953..da78a439e7c 100644
--- a/src/mame/drivers/cischeat.cpp
+++ b/src/mame/drivers/cischeat.cpp
@@ -544,15 +544,15 @@ WRITE16_MEMBER(cischeat_state::scudhamm_leds_w)
{
if (ACCESSING_BITS_8_15)
{
- output().set_led_value(0, data & 0x0100); // 3 buttons
- output().set_led_value(1, data & 0x0200);
- output().set_led_value(2, data & 0x0400);
+ m_led[0] = BIT(data, 8); // 3 buttons
+ m_led[1] = BIT(data, 9);
+ m_led[2] = BIT(data, 10);
}
if (ACCESSING_BITS_0_7)
{
-// output().set_led_value(3, data & 0x0010); // if we had more leds..
-// output().set_led_value(4, data & 0x0020);
+ m_led[3] = BIT(data, 4);
+ m_led[4] = BIT(data, 5);
}
}
@@ -647,10 +647,10 @@ WRITE16_MEMBER(cischeat_state::armchmp2_leds_w)
{
if (ACCESSING_BITS_8_15)
{
- output().set_led_value(0, data & 0x0100);
- output().set_led_value(1, data & 0x1000);
- output().set_led_value(2, data & 0x2000);
- output().set_led_value(3, data & 0x4000);
+ m_led[0] = BIT(data, 8);
+ m_led[1] = BIT(data, 12);
+ m_led[2] = BIT(data, 13);
+ m_led[3] = BIT(data, 14);
}
if (ACCESSING_BITS_0_7)
@@ -694,9 +694,9 @@ WRITE16_MEMBER(cischeat_state::captflag_leds_w)
if (ACCESSING_BITS_8_15)
{
machine().bookkeeping().coin_counter_w(1, data & 0x0100); // coin 2
- output().set_led_value(0, data & 0x0200); // decide
+ m_led[0] = BIT(data, 8); // decide
machine().bookkeeping().coin_counter_w(0, data & 0x0400); // coin 1
- output().set_led_value(1, data & 0x2000); // select
+ m_led[1] = BIT(data, 13); // select
int power = (data & 0x1000);
m_captflag_hopper->motor_w(power ? 1 : 0); // prize motor