// license:BSD-3-Clause // copyright-holders:Hau, Nicola Salmoria #include "machine/gen_latch.h" #include "video/tecmo_spr.h" #include "video/tecmo_mix.h" class tecmo16_state : public driver_device { public: tecmo16_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_screen(*this, "screen"), m_palette(*this, "palette"), m_sprgen(*this, "spritegen"), m_mixer(*this, "mixer"), m_soundlatch(*this, "soundlatch"), m_videoram(*this, "videoram"), m_colorram(*this, "colorram"), m_videoram2(*this, "videoram2"), m_colorram2(*this, "colorram2"), m_charram(*this, "charram"), m_spriteram(*this, "spriteram") { } required_device m_maincpu; required_device m_audiocpu; required_device m_gfxdecode; required_device m_screen; required_device m_palette; required_device m_sprgen; required_device m_mixer; required_device m_soundlatch; required_shared_ptr m_videoram; required_shared_ptr m_colorram; required_shared_ptr m_videoram2; required_shared_ptr m_colorram2; required_shared_ptr m_charram; required_shared_ptr m_spriteram; tilemap_t *m_fg_tilemap; tilemap_t *m_bg_tilemap; tilemap_t *m_tx_tilemap; bitmap_ind16 m_sprite_bitmap; bitmap_ind16 m_tile_bitmap_bg; bitmap_ind16 m_tile_bitmap_fg; int m_flipscreen; int m_game_is_riot; UINT16 m_scroll_x_w; UINT16 m_scroll_y_w; UINT16 m_scroll2_x_w; UINT16 m_scroll2_y_w; UINT16 m_scroll_char_x_w; UINT16 m_scroll_char_y_w; DECLARE_WRITE16_MEMBER(sound_command_w); DECLARE_WRITE16_MEMBER(videoram_w); DECLARE_WRITE16_MEMBER(colorram_w); DECLARE_WRITE16_MEMBER(videoram2_w); DECLARE_WRITE16_MEMBER(colorram2_w); DECLARE_WRITE16_MEMBER(charram_w); DECLARE_WRITE16_MEMBER(flipscreen_w); DECLARE_WRITE16_MEMBER(scroll_x_w); DECLARE_WRITE16_MEMBER(scroll_y_w); DECLARE_WRITE16_MEMBER(scroll2_x_w); DECLARE_WRITE16_MEMBER(scroll2_y_w); DECLARE_WRITE16_MEMBER(scroll_char_x_w); DECLARE_WRITE16_MEMBER(scroll_char_y_w); TILE_GET_INFO_MEMBER(fg_get_tile_info); TILE_GET_INFO_MEMBER(bg_get_tile_info); TILE_GET_INFO_MEMBER(tx_get_tile_info); virtual void video_start() override; DECLARE_VIDEO_START(ginkun); DECLARE_VIDEO_START(riot); UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void save_state(); };