summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/flyball.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/flyball.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/flyball.cpp')
-rw-r--r--src/mame/drivers/flyball.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mame/drivers/flyball.cpp b/src/mame/drivers/flyball.cpp
index 220a05a65ed..4f6905e7a79 100644
--- a/src/mame/drivers/flyball.cpp
+++ b/src/mame/drivers/flyball.cpp
@@ -44,7 +44,8 @@ public:
m_screen(*this, "screen"),
m_palette(*this, "palette"),
m_outlatch(*this, "outlatch"),
- m_playfield_ram(*this, "playfield_ram")
+ m_playfield_ram(*this, "playfield_ram"),
+ m_lamp(*this, "lamp0")
{ }
void flyball(machine_config &config);
@@ -89,6 +90,8 @@ private:
/* memory pointers */
required_shared_ptr<uint8_t> m_playfield_ram;
+ output_finder<> m_lamp;
+
/* video-related */
tilemap_t *m_tmap;
uint8_t m_pitcher_vert;
@@ -288,7 +291,7 @@ WRITE8_MEMBER(flyball_state::misc_w)
WRITE_LINE_MEMBER(flyball_state::lamp_w)
{
- output().set_led_value(0, state);
+ m_lamp = state ? 1 : 0;
}
@@ -431,6 +434,7 @@ void flyball_state::machine_start()
m_pot_assert_timer[i] = timer_alloc(TIMER_POT_ASSERT);
m_pot_clear_timer = timer_alloc(TIMER_POT_CLEAR);
m_quarter_timer = timer_alloc(TIMER_QUARTER);
+ m_lamp.resolve();
save_item(NAME(m_pitcher_vert));
save_item(NAME(m_pitcher_horz));