mirror of
https://github.com/holub/mame
synced 2025-10-05 16:50:57 +03:00
-output: Removed legacy output accessors from cinemat, bzone drivers. [Ryan Holtz]
This commit is contained in:
parent
d1c9c3379b
commit
3fd1c159ef
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -231,6 +231,7 @@
|
||||
void bzone_state::machine_start()
|
||||
{
|
||||
save_item(NAME(m_analog_data));
|
||||
m_startled.resolve();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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<cpu_device> m_maincpu;
|
||||
required_device<mathbox_device> m_mathbox;
|
||||
optional_device<discrete_device> m_discrete;
|
||||
output_finder<> m_startled;
|
||||
|
||||
uint8_t m_analog_data;
|
||||
};
|
||||
|
@ -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<ccpu_cpu_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;
|
||||
|
Loading…
Reference in New Issue
Block a user