// license:GPL-2.0+ // copyright-holders:Jarek Burczynski /************************************************************************* Rastan *************************************************************************/ #include "machine/74157.h" #include "sound/msm5205.h" #include "video/pc080sn.h" #include "video/pc090oj.h" class rastan_state : public driver_device { public: rastan_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_msm(*this, "msm"), m_adpcm_sel(*this, "adpcm_sel"), m_adpcm_data(*this, "adpcm"), m_pc080sn(*this, "pc080sn"), m_pc090oj(*this, "pc090oj") { } /* video-related */ u16 m_sprite_ctrl; u16 m_sprites_flipscreen; /* misc */ u16 m_adpcm_pos; bool m_adpcm_ff; /* devices */ required_device m_maincpu; required_device m_audiocpu; required_device m_msm; required_device m_adpcm_sel; required_region_ptr m_adpcm_data; required_device m_pc080sn; required_device m_pc090oj; DECLARE_WRITE8_MEMBER(rastan_msm5205_address_w); DECLARE_WRITE16_MEMBER(rastan_spritectrl_w); DECLARE_WRITE8_MEMBER(rastan_bankswitch_w); DECLARE_WRITE8_MEMBER(rastan_msm5205_start_w); DECLARE_WRITE8_MEMBER(rastan_msm5205_stop_w); virtual void machine_start() override; virtual void machine_reset() override; uint32_t screen_update_rastan(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECLARE_WRITE_LINE_MEMBER(rastan_msm5205_vck); void rastan(machine_config &config); void rastan_map(address_map &map); void rastan_s_map(address_map &map); };