diff options
Diffstat (limited to 'src/mame/includes/bagman.h')
-rw-r--r-- | src/mame/includes/bagman.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/mame/includes/bagman.h b/src/mame/includes/bagman.h index b7c640942de..fe2394a3b49 100644 --- a/src/mame/includes/bagman.h +++ b/src/mame/includes/bagman.h @@ -1,5 +1,7 @@ // license:BSD-3-Clause // copyright-holders:Nicola Salmoria + +#include "machine/74259.h" #include "sound/tms5110.h" class bagman_state : public driver_device @@ -11,23 +13,23 @@ public: m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), m_tmsprom(*this, "tmsprom"), + m_tmslatch(*this, "tmslatch"), m_videoram(*this, "videoram"), m_colorram(*this, "colorram"), - m_video_enable(*this, "video_enable"), m_spriteram(*this, "spriteram") { } required_device<cpu_device> m_maincpu; required_device<gfxdecode_device> m_gfxdecode; required_device<palette_device> m_palette; optional_device<tmsprom_device> m_tmsprom; + optional_device<ls259_device> m_tmslatch; required_shared_ptr<uint8_t> m_videoram; required_shared_ptr<uint8_t> m_colorram; - required_shared_ptr<uint8_t> m_video_enable; required_shared_ptr<uint8_t> m_spriteram; - uint8_t m_irq_mask; - uint8_t m_ls259_buf[8]; + bool m_irq_mask; + bool m_video_enable; uint8_t m_p1_res; uint8_t m_p1_old_val; uint8_t m_p2_res; @@ -45,14 +47,19 @@ public: tilemap_t *m_bg_tilemap; // common - DECLARE_WRITE8_MEMBER(coincounter_w); - DECLARE_WRITE8_MEMBER(irq_mask_w); + DECLARE_WRITE_LINE_MEMBER(coin_counter_w); + DECLARE_WRITE_LINE_MEMBER(irq_mask_w); DECLARE_WRITE8_MEMBER(videoram_w); DECLARE_WRITE8_MEMBER(colorram_w); - DECLARE_WRITE8_MEMBER(flipscreen_w); + DECLARE_WRITE_LINE_MEMBER(flipscreen_x_w); + DECLARE_WRITE_LINE_MEMBER(flipscreen_y_w); + DECLARE_WRITE_LINE_MEMBER(video_enable_w); // bagman DECLARE_WRITE8_MEMBER(ls259_w); + DECLARE_WRITE_LINE_MEMBER(tmsprom_bit_w); + DECLARE_WRITE_LINE_MEMBER(tmsprom_csq0_w); + DECLARE_WRITE_LINE_MEMBER(tmsprom_csq1_w); DECLARE_WRITE8_MEMBER(pal16r6_w); DECLARE_READ8_MEMBER(pal16r6_r); @@ -63,12 +70,10 @@ public: TILE_GET_INFO_MEMBER(get_bg_tile_info); virtual void machine_start() override; - DECLARE_MACHINE_START(bagman); DECLARE_MACHINE_START(squaitsa); virtual void machine_reset() override; virtual void video_start() override; DECLARE_PALETTE_INIT(bagman); - DECLARE_DRIVER_INIT(bagman); INTERRUPT_GEN_MEMBER(vblank_irq); |