// license:BSD-3-Clause // copyright-holders:David Haywood #include "machine/gen_latch.h" #include "video/tecmo_spr.h" #include "video/tecmo_mix.h" class spbactn_state : public driver_device { public: spbactn_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_bgvideoram(*this, "bgvideoram"), m_fgvideoram(*this, "fgvideoram"), m_spvideoram(*this, "spvideoram"), m_extraram(*this, "extraram"), m_extraram2(*this, "extraram2") { } 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_bgvideoram; required_shared_ptr m_fgvideoram; required_shared_ptr m_spvideoram; optional_shared_ptr m_extraram; optional_shared_ptr m_extraram2; tilemap_t *m_bg_tilemap; tilemap_t *m_fg_tilemap; tilemap_t *m_extra_tilemap; DECLARE_WRITE16_MEMBER(bg_videoram_w); DECLARE_WRITE16_MEMBER(fg_videoram_w); TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); DECLARE_WRITE8_MEMBER(extraram_w); TILE_GET_INFO_MEMBER(get_extra_tile_info); bitmap_ind16 m_tile_bitmap_bg; bitmap_ind16 m_tile_bitmap_fg; bitmap_ind16 m_sprite_bitmap; DECLARE_WRITE16_MEMBER(soundcommand_w); DECLARE_WRITE16_MEMBER( spbatnp_90002_w ); DECLARE_WRITE16_MEMBER( spbatnp_90006_w ); DECLARE_WRITE16_MEMBER( spbatnp_9000a_w ); DECLARE_WRITE16_MEMBER( spbatnp_9000c_w ); DECLARE_WRITE16_MEMBER( spbatnp_9000e_w ); DECLARE_WRITE16_MEMBER( spbatnp_90124_w ); DECLARE_WRITE16_MEMBER( spbatnp_9012c_w ); DECLARE_VIDEO_START(spbactn); DECLARE_VIDEO_START(spbactnp); //virtual void video_start(); UINT32 screen_update_spbactn(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); UINT32 screen_update_spbactnp(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); int draw_video(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, bool alt_sprites); // temp hack DECLARE_READ16_MEMBER(temp_read_handler_r) { return 0xffff; } };