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/lucky74.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/lucky74.cpp')
-rw-r--r-- | src/mame/drivers/lucky74.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/lucky74.cpp b/src/mame/drivers/lucky74.cpp index e790e3c94a6..d5cb1c8285e 100644 --- a/src/mame/drivers/lucky74.cpp +++ b/src/mame/drivers/lucky74.cpp @@ -878,10 +878,10 @@ WRITE8_MEMBER(lucky74_state::lamps_a_w) ---- xx-- BIG + SMALL (need to be individualized) */ - output().set_lamp_value(8, (data >> 0) & 1); /* D-UP */ - output().set_lamp_value(9, (data >> 1) & 1); /* TAKE SCORE */ - output().set_lamp_value(10, (data >> 2) & 1); /* BIG */ - output().set_lamp_value(11, (data >> 3) & 1); /* SMALL */ + m_lamp[8] = BIT(data, 0); /* D-UP */ + m_lamp[9] = BIT(data, 1); /* TAKE SCORE */ + m_lamp[10] = BIT(data, 2); /* BIG */ + m_lamp[11] = BIT(data, 3); /* SMALL */ } WRITE8_MEMBER(lucky74_state::lamps_b_w) @@ -898,14 +898,14 @@ WRITE8_MEMBER(lucky74_state::lamps_b_w) x--- ---- CANCEL (should lit start too?) */ - output().set_lamp_value(0, (data >> 0) & 1); /* HOLD1 */ - output().set_lamp_value(1, (data >> 1) & 1); /* HOLD2 */ - output().set_lamp_value(2, (data >> 2) & 1); /* HOLD3 */ - output().set_lamp_value(3, (data >> 3) & 1); /* HOLD4 */ - output().set_lamp_value(4, (data >> 4) & 1); /* HOLD5 */ - output().set_lamp_value(5, (data >> 5) & 1); /* BET */ - output().set_lamp_value(6, ((data >> 6) & 1)|((data >> 7) & 1)); /* START */ - output().set_lamp_value(7, (data >> 7) & 1); /* CANCEL */ + m_lamp[0] = BIT(data, 0); /* HOLD1 */ + m_lamp[1] = BIT(data, 1); /* HOLD2 */ + m_lamp[2] = BIT(data, 2); /* HOLD3 */ + m_lamp[3] = BIT(data, 3); /* HOLD4 */ + m_lamp[4] = BIT(data, 4); /* HOLD5 */ + m_lamp[5] = BIT(data, 5); /* BET */ + m_lamp[6] = BIT(data, 6) | BIT(data, 7); /* START */ + m_lamp[7] = BIT(data, 7); /* CANCEL */ } |