mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +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);
|
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);
|
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)
|
WRITE_LINE_MEMBER(cinemat_state::speedfrk_start_led_w)
|
||||||
{
|
{
|
||||||
/* start LED is controlled by bit 0x02 */
|
/* start LED is controlled by bit 0x02 */
|
||||||
output().set_led_value(0, !state);
|
m_led = !state;
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(cinemat_state::speedfrk_sound)
|
MACHINE_CONFIG_START(cinemat_state::speedfrk_sound)
|
||||||
@ -499,7 +499,7 @@ WRITE_LINE_MEMBER(cinemat_state::tailg_sound_w)
|
|||||||
m_samples->start(5, 5);
|
m_samples->start(5, 5);
|
||||||
|
|
||||||
/* LED */
|
/* LED */
|
||||||
output().set_led_value(0, m_current_shift & 0x40);
|
m_led = BIT(m_current_shift, 6);
|
||||||
|
|
||||||
/* remember the previous value */
|
/* remember the previous value */
|
||||||
m_last_shift = m_current_shift;
|
m_last_shift = m_current_shift;
|
||||||
|
@ -231,6 +231,7 @@
|
|||||||
void bzone_state::machine_start()
|
void bzone_state::machine_start()
|
||||||
{
|
{
|
||||||
save_item(NAME(m_analog_data));
|
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_detected));
|
||||||
save_item(NAME(m_coin_last_reset));
|
save_item(NAME(m_coin_last_reset));
|
||||||
save_item(NAME(m_mux_select));
|
save_item(NAME(m_mux_select));
|
||||||
|
m_led.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +24,8 @@ public:
|
|||||||
driver_device(mconfig, type, tag),
|
driver_device(mconfig, type, tag),
|
||||||
m_maincpu(*this, "maincpu"),
|
m_maincpu(*this, "maincpu"),
|
||||||
m_mathbox(*this, "mathbox"),
|
m_mathbox(*this, "mathbox"),
|
||||||
m_discrete(*this, "discrete")
|
m_discrete(*this, "discrete"),
|
||||||
|
m_startled(*this, "startled")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
DECLARE_CUSTOM_INPUT_MEMBER(clock_r);
|
DECLARE_CUSTOM_INPUT_MEMBER(clock_r);
|
||||||
@ -47,6 +48,7 @@ private:
|
|||||||
required_device<cpu_device> m_maincpu;
|
required_device<cpu_device> m_maincpu;
|
||||||
required_device<mathbox_device> m_mathbox;
|
required_device<mathbox_device> m_mathbox;
|
||||||
optional_device<discrete_device> m_discrete;
|
optional_device<discrete_device> m_discrete;
|
||||||
|
output_finder<> m_startled;
|
||||||
|
|
||||||
uint8_t m_analog_data;
|
uint8_t m_analog_data;
|
||||||
};
|
};
|
||||||
|
@ -27,6 +27,7 @@ public:
|
|||||||
, m_rambase(*this, "rambase")
|
, m_rambase(*this, "rambase")
|
||||||
, m_analog_x(*this, "ANALOGX")
|
, m_analog_x(*this, "ANALOGX")
|
||||||
, m_analog_y(*this, "ANALOGY")
|
, m_analog_y(*this, "ANALOGY")
|
||||||
|
, m_led(*this, "led")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
required_device<ccpu_cpu_device> m_maincpu;
|
required_device<ccpu_cpu_device> m_maincpu;
|
||||||
@ -40,6 +41,8 @@ public:
|
|||||||
optional_ioport m_analog_x;
|
optional_ioport m_analog_x;
|
||||||
optional_ioport m_analog_y;
|
optional_ioport m_analog_y;
|
||||||
|
|
||||||
|
output_finder<> m_led;
|
||||||
|
|
||||||
uint32_t m_current_shift;
|
uint32_t m_current_shift;
|
||||||
uint32_t m_last_shift;
|
uint32_t m_last_shift;
|
||||||
uint32_t m_last_shift2;
|
uint32_t m_last_shift2;
|
||||||
|
Loading…
Reference in New Issue
Block a user