diff options
author | wilbertpol <wilbertpol@users.noreply.github.com> | 2018-05-20 19:27:20 +0200 |
---|---|---|
committer | R. Belmont <rb6502@users.noreply.github.com> | 2018-05-20 13:27:20 -0400 |
commit | 2beba4ce73fad917c7159a39939bace54f76494b (patch) | |
tree | e9d33c059bc5045f13d0c1748f0a044650370b8d /src/mame/drivers/cischeat.cpp | |
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/mame/drivers/cischeat.cpp')
-rw-r--r-- | src/mame/drivers/cischeat.cpp | 22 |
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 |