// license:BSD-3-Clause // copyright-holders:Frank Palazzolo #include "sound/discrete.h" #include "sound/samples.h" class blockade_state : public driver_device { public: blockade_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_videoram(*this, "videoram"), m_discrete(*this, "discrete"), m_maincpu(*this, "maincpu"), m_samples(*this, "samples"), m_gfxdecode(*this, "gfxdecode"), m_screen(*this, "screen") { } required_shared_ptr m_videoram; required_device m_discrete; /* video-related */ tilemap_t *m_bg_tilemap; /* input-related */ UINT8 m_coin_latch; /* Active Low */ UINT8 m_just_been_reset; DECLARE_READ8_MEMBER(blockade_input_port_0_r); DECLARE_WRITE8_MEMBER(blockade_coin_latch_w); DECLARE_WRITE8_MEMBER(blockade_videoram_w); DECLARE_WRITE8_MEMBER(blockade_env_on_w); DECLARE_WRITE8_MEMBER(blockade_env_off_w); TILE_GET_INFO_MEMBER(get_bg_tile_info); virtual void machine_start() override; virtual void machine_reset() override; virtual void video_start() override; UINT32 screen_update_blockade(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(blockade_interrupt); DECLARE_WRITE8_MEMBER(blockade_sound_freq_w); required_device m_maincpu; required_device m_samples; required_device m_gfxdecode; required_device m_screen; }; /*----------- defined in audio/blockade.c -----------*/ extern const char *const blockade_sample_names[]; DISCRETE_SOUND_EXTERN( blockade );