summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/funworld.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/funworld.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/funworld.cpp')
-rw-r--r--src/mame/drivers/funworld.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/funworld.cpp b/src/mame/drivers/funworld.cpp
index 438764a7fd1..51ec37a9822 100644
--- a/src/mame/drivers/funworld.cpp
+++ b/src/mame/drivers/funworld.cpp
@@ -1023,17 +1023,17 @@ WRITE8_MEMBER(funworld_state::funworld_lamp_a_w)
-x-- ---- Hopper Motor (inverted).
x--- ---- HOLD4 lamp.
*/
- output().set_lamp_value(0, 1-((data >> 1) & 1)); /* Hold1 (inverted) */
- output().set_lamp_value(2, 1-((data >> 1) & 1)); /* Hold3 (inverted, see pinouts) */
+ m_lamp[0] = BIT(~data, 1); /* Hold1 (inverted) */
+ m_lamp[2] = BIT(~data, 1); /* Hold3 (inverted, see pinouts) */
- output().set_lamp_value(1, 1-((data >> 3) & 1)); /* Hold2 / Low (inverted) */
- output().set_lamp_value(3, (data >> 7) & 1); /* Hold4 / High */
- output().set_lamp_value(5, 1-((data >> 5) & 1)); /* Cancel / Collect (inverted) */
+ m_lamp[1] = BIT(~data, 3); /* Hold2 / Low (inverted) */
+ m_lamp[3] = BIT(data, 7); /* Hold4 / High */
+ m_lamp[5] = BIT(~data, 5); /* Cancel / Collect (inverted) */
machine().bookkeeping().coin_counter_w(0, data & 0x01); /* Credit In counter */
machine().bookkeeping().coin_counter_w(7, data & 0x04); /* Credit Out counter, mapped as coin 8 */
- output().set_lamp_value(7, 1-((data >> 6) & 1)); /* Hopper Motor (inverted) */
+ m_lamp[7] = BIT(~data, 6); /* Hopper Motor (inverted) */
// popmessage("Lamps A: %02X", (data ^ 0xff));
}
@@ -1047,8 +1047,8 @@ WRITE8_MEMBER(funworld_state::funworld_lamp_b_w)
---- -x-- Unknown (inverted).
xxxx x--- Unknown.
*/
- output().set_lamp_value(4, (data >> 0) & 1); /* Hold5 / Bet */
- output().set_lamp_value(6, (data >> 1) & 1); /* Start / Deal / Draw */
+ m_lamp[4] = BIT(data, 0); /* Hold5 / Bet */
+ m_lamp[6] = BIT(data, 1); /* Start / Deal / Draw */
// popmessage("Lamps B: %02X", data);
}