diff --git a/src/mame/audio/bzone.cpp b/src/mame/audio/bzone.cpp index 3bbc89835a0..fd363bef5f9 100644 --- a/src/mame/audio/bzone.cpp +++ b/src/mame/audio/bzone.cpp @@ -392,7 +392,7 @@ WRITE8_MEMBER(bzone_state::bzone_sounds_w) { m_discrete->write(space, BZ_INPUT, data); - output().set_value("startled", (data >> 6) & 1); + m_startled = BIT(data, 6); machine().sound().system_enable(data & 0x20); } diff --git a/src/mame/audio/cinemat.cpp b/src/mame/audio/cinemat.cpp index 34ecded46f7..fb9dbec1349 100644 --- a/src/mame/audio/cinemat.cpp +++ b/src/mame/audio/cinemat.cpp @@ -259,7 +259,7 @@ WRITE_LINE_MEMBER(cinemat_state::speedfrk_sound4_w) WRITE_LINE_MEMBER(cinemat_state::speedfrk_start_led_w) { /* start LED is controlled by bit 0x02 */ - output().set_led_value(0, !state); + m_led = !state; } MACHINE_CONFIG_START(cinemat_state::speedfrk_sound) @@ -499,7 +499,7 @@ WRITE_LINE_MEMBER(cinemat_state::tailg_sound_w) m_samples->start(5, 5); /* LED */ - output().set_led_value(0, m_current_shift & 0x40); + m_led = BIT(m_current_shift, 6); /* remember the previous value */ m_last_shift = m_current_shift; diff --git a/src/mame/drivers/bzone.cpp b/src/mame/drivers/bzone.cpp index 0cc63850820..a0bb0e31538 100644 --- a/src/mame/drivers/bzone.cpp +++ b/src/mame/drivers/bzone.cpp @@ -231,6 +231,7 @@ void bzone_state::machine_start() { save_item(NAME(m_analog_data)); + m_startled.resolve(); } diff --git a/src/mame/drivers/cinemat.cpp b/src/mame/drivers/cinemat.cpp index cd526b14e95..ad0002038c5 100644 --- a/src/mame/drivers/cinemat.cpp +++ b/src/mame/drivers/cinemat.cpp @@ -58,6 +58,7 @@ void cinemat_state::machine_start() save_item(NAME(m_coin_detected)); save_item(NAME(m_coin_last_reset)); save_item(NAME(m_mux_select)); + m_led.resolve(); } diff --git a/src/mame/includes/bzone.h b/src/mame/includes/bzone.h index b4b71c84988..7ebdf68894f 100644 --- a/src/mame/includes/bzone.h +++ b/src/mame/includes/bzone.h @@ -24,7 +24,8 @@ public: driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_mathbox(*this, "mathbox"), - m_discrete(*this, "discrete") + m_discrete(*this, "discrete"), + m_startled(*this, "startled") { } DECLARE_CUSTOM_INPUT_MEMBER(clock_r); @@ -47,6 +48,7 @@ private: required_device m_maincpu; required_device m_mathbox; optional_device m_discrete; + output_finder<> m_startled; uint8_t m_analog_data; }; diff --git a/src/mame/includes/cinemat.h b/src/mame/includes/cinemat.h index 3a078ee17df..49d1b53633e 100644 --- a/src/mame/includes/cinemat.h +++ b/src/mame/includes/cinemat.h @@ -27,6 +27,7 @@ public: , m_rambase(*this, "rambase") , m_analog_x(*this, "ANALOGX") , m_analog_y(*this, "ANALOGY") + , m_led(*this, "led") { } required_device m_maincpu; @@ -40,6 +41,8 @@ public: optional_ioport m_analog_x; optional_ioport m_analog_y; + output_finder<> m_led; + uint32_t m_current_shift; uint32_t m_last_shift; uint32_t m_last_shift2;