summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mcr3.cpp
diff options
context:
space:
mode:
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
commit2beba4ce73fad917c7159a39939bace54f76494b (patch)
treee9d33c059bc5045f13d0c1748f0a044650370b8d /src/mame/drivers/mcr3.cpp
parentacf93837ac21b2b0bb003d1649b893200c269812 (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/mcr3.cpp')
-rw-r--r--src/mame/drivers/mcr3.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/mcr3.cpp b/src/mame/drivers/mcr3.cpp
index 3af3f26e2ef..97361f7a30a 100644
--- a/src/mame/drivers/mcr3.cpp
+++ b/src/mame/drivers/mcr3.cpp
@@ -319,9 +319,9 @@ WRITE8_MEMBER(mcr3_state::powerdrv_op5_w)
/* bit 3 -> J1-10 = lamp 1 */
/* bit 2 -> J1-8 = lamp 2 */
/* bit 1 -> J1-6 = lamp 3 */
- output().set_led_value(0, (data >> 3) & 1);
- output().set_led_value(1, (data >> 2) & 1);
- output().set_led_value(2, (data >> 1) & 1);
+ m_lamp[0] = BIT(data, 3);
+ m_lamp[1] = BIT(data, 2);
+ m_lamp[2] = BIT(data, 1);
/* remaining bits go to standard connections */
mcrmono_control_port_w(space, offset, data);
@@ -362,9 +362,9 @@ WRITE8_MEMBER(mcr3_state::stargrds_op5_w)
/* bit 2 controls light #0 */
/* bit 3 controls light #1 */
/* bit 4 controls light #2 */
- output().set_led_value(0, (data >> 2) & 1);
- output().set_led_value(1, (data >> 3) & 1);
- output().set_led_value(2, (data >> 4) & 1);
+ m_lamp[0] = BIT(data, 2);
+ m_lamp[1] = BIT(data, 3);
+ m_lamp[2] = BIT(data, 4);
/* remaining bits go to standard connections */
mcrmono_control_port_w(space, offset, data);