// license:BSD-3-Clause // copyright-holders:Phil Stroffolino /************************************************************************* Mr. Flea *************************************************************************/ class mrflea_state : public driver_device { public: mrflea_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_videoram(*this, "videoram"), m_spriteram(*this, "spriteram"), m_maincpu(*this, "maincpu"), m_subcpu(*this, "sub"), m_gfxdecode(*this, "gfxdecode"), m_screen(*this, "screen"), m_palette(*this, "palette") { } /* memory pointers */ required_shared_ptr m_videoram; required_shared_ptr m_spriteram; /* video-related */ int m_gfx_bank; /* misc */ int m_io; int m_main; int m_status; int m_select1; /* devices */ required_device m_maincpu; required_device m_subcpu; required_device m_gfxdecode; required_device m_screen; required_device m_palette; DECLARE_WRITE8_MEMBER(mrflea_main_w); DECLARE_WRITE8_MEMBER(mrflea_io_w); DECLARE_READ8_MEMBER(mrflea_main_r); DECLARE_READ8_MEMBER(mrflea_io_r); DECLARE_READ8_MEMBER(mrflea_main_status_r); DECLARE_READ8_MEMBER(mrflea_io_status_r); DECLARE_READ8_MEMBER(mrflea_interrupt_type_r); DECLARE_WRITE8_MEMBER(mrflea_select1_w); DECLARE_READ8_MEMBER(mrflea_input1_r); DECLARE_WRITE8_MEMBER(mrflea_data1_w); DECLARE_WRITE8_MEMBER(mrflea_gfx_bank_w); DECLARE_WRITE8_MEMBER(mrflea_videoram_w); DECLARE_WRITE8_MEMBER(mrflea_spriteram_w); virtual void machine_start() override; virtual void machine_reset() override; UINT32 screen_update_mrflea(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(mrflea_slave_interrupt); void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); void draw_background( bitmap_ind16 &bitmap, const rectangle &cliprect ); };