mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
mappy: output_finder
This commit is contained in:
parent
8b92654900
commit
180d4c1a32
@ -1302,14 +1302,16 @@ GFXDECODE_END
|
||||
|
||||
WRITE8_MEMBER(mappy_state::out_lamps)
|
||||
{
|
||||
output().set_led_value(0, data & 1);
|
||||
output().set_led_value(1, data & 2);
|
||||
m_leds[0] = BIT(data, 0);
|
||||
m_leds[1] = BIT(data, 1);
|
||||
machine().bookkeeping().coin_lockout_global_w(data & 4);
|
||||
machine().bookkeeping().coin_counter_w(0, ~data & 8);
|
||||
}
|
||||
|
||||
void mappy_state::machine_start()
|
||||
{
|
||||
m_leds.resolve();
|
||||
|
||||
save_item(NAME(m_main_irq_mask));
|
||||
save_item(NAME(m_sub_irq_mask));
|
||||
save_item(NAME(m_sub2_irq_mask));
|
||||
|
@ -25,7 +25,9 @@ public:
|
||||
m_dac(*this, "dac"),
|
||||
m_gfxdecode(*this, "gfxdecode"),
|
||||
m_screen(*this, "screen"),
|
||||
m_palette(*this, "palette") { }
|
||||
m_palette(*this, "palette"),
|
||||
m_leds(*this, "led%u", 0U)
|
||||
{ }
|
||||
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
required_shared_ptr<uint8_t> m_spriteram;
|
||||
@ -39,6 +41,7 @@ public:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<screen_device> m_screen;
|
||||
required_device<palette_device> m_palette;
|
||||
output_finder<2> m_leds;
|
||||
|
||||
tilemap_t *m_bg_tilemap;
|
||||
bitmap_ind16 m_sprite_bitmap;
|
||||
|
Loading…
Reference in New Issue
Block a user