// license:BSD-3-Clause // copyright-holders:David Haywood #ifndef MAME_INCLUDES_TAOTAIDO_H #define MAME_INCLUDES_TAOTAIDO_H #include "video/vsystem_spr.h" #include "machine/gen_latch.h" #include "machine/mb3773.h" class taotaido_state : public driver_device { public: taotaido_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_audiocpu(*this, "audiocpu"), m_gfxdecode(*this, "gfxdecode"), m_spr(*this, "vsystem_spr"), m_soundlatch(*this, "soundlatch"), m_watchdog(*this, "watchdog"), m_spriteram(*this, "spriteram"), m_spriteram2(*this, "spriteram2"), m_scrollram(*this, "scrollram"), m_bgram(*this, "bgram"), m_soundbank(*this, "soundbank"), m_spritebank(*this, "spritebank", 0) { } void taotaido(machine_config &config); private: required_device m_maincpu; required_device m_audiocpu; required_device m_gfxdecode; required_device m_spr; required_device m_soundlatch; required_device m_watchdog; required_shared_ptr m_spriteram; required_shared_ptr m_spriteram2; required_shared_ptr m_scrollram; required_shared_ptr m_bgram; required_memory_bank m_soundbank; required_shared_ptr m_spritebank; uint8_t m_bgbank[8]; tilemap_t *m_bg_tilemap; std::unique_ptr m_spriteram_old; std::unique_ptr m_spriteram_older; std::unique_ptr m_spriteram2_old; std::unique_ptr m_spriteram2_older; DECLARE_READ16_MEMBER(pending_command_r); DECLARE_WRITE8_MEMBER(unknown_output_w); DECLARE_WRITE8_MEMBER(sh_bankswitch_w); DECLARE_WRITE8_MEMBER(spritebank_w); DECLARE_WRITE16_MEMBER(tileregs_w); DECLARE_WRITE16_MEMBER(bgvideoram_w); TILE_GET_INFO_MEMBER(bg_tile_info); TILEMAP_MAPPER_MEMBER(tilemap_scan_rows); virtual void machine_start() override; virtual void video_start() override; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECLARE_WRITE_LINE_MEMBER(screen_vblank); uint32_t tile_callback( uint32_t code ); void main_map(address_map &map); void sound_map(address_map &map); void sound_port_map(address_map &map); }; #endif // MAME_INCLUDES_TAOTAIDO_H