// license:BSD-3-Clause // copyright-holders:Tomasz Slanina,David Haywood class freekick_state : public driver_device { public: freekick_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_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), m_bank1(*this, "bank1"), m_bank1d(*this, "bank1d") { } /* memory pointers */ required_shared_ptr m_videoram; required_shared_ptr m_spriteram; /* video-related */ tilemap_t *m_freek_tilemap; /* misc */ int m_inval; int m_outval; int m_cnt; // used by oigas int m_romaddr; int m_spinner; int m_nmi_en; int m_ff_data; DECLARE_WRITE_LINE_MEMBER(flipscreen_x_w); DECLARE_WRITE_LINE_MEMBER(flipscreen_y_w); DECLARE_WRITE_LINE_MEMBER(flipscreen_w); DECLARE_WRITE_LINE_MEMBER(coin1_w); DECLARE_WRITE_LINE_MEMBER(coin2_w); DECLARE_WRITE_LINE_MEMBER(spinner_select_w); DECLARE_WRITE8_MEMBER(gigas_spinner_select_w); DECLARE_READ8_MEMBER(spinner_r); DECLARE_WRITE8_MEMBER(pbillrd_bankswitch_w); DECLARE_WRITE_LINE_MEMBER(nmi_enable_w); DECLARE_WRITE8_MEMBER(oigas_5_w); DECLARE_READ8_MEMBER(oigas_3_r); DECLARE_READ8_MEMBER(oigas_2_r); DECLARE_READ8_MEMBER(freekick_ff_r); DECLARE_WRITE8_MEMBER(freekick_ff_w); DECLARE_WRITE8_MEMBER(freek_videoram_w); DECLARE_WRITE8_MEMBER(snd_rom_addr_l_w); DECLARE_WRITE8_MEMBER(snd_rom_addr_h_w); DECLARE_READ8_MEMBER(snd_rom_r); void init_gigas(); void init_gigasb(); void init_pbillrds(); TILE_GET_INFO_MEMBER(get_freek_tile_info); virtual void video_start() override; DECLARE_MACHINE_START(pbillrd); DECLARE_MACHINE_RESET(freekick); DECLARE_MACHINE_START(freekick); DECLARE_MACHINE_START(oigas); DECLARE_MACHINE_RESET(oigas); uint32_t screen_update_pbillrd(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_freekick(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_gigas(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECLARE_WRITE_LINE_MEMBER(vblank_irq); void gigas_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); void pbillrd_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); void freekick_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); required_device m_maincpu; required_device m_gfxdecode; required_device m_palette; optional_memory_bank m_bank1, m_bank1d; void base(machine_config &config); void oigas(machine_config &config); void pbillrd(machine_config &config); void gigas(machine_config &config); void gigasm(machine_config &config); void pbillrdm(machine_config &config); void omega(machine_config &config); void freekick(machine_config &config); void decrypted_opcodes_map(address_map &map); void freekick_io_map(address_map &map); void freekick_map(address_map &map); void gigas_io_map(address_map &map); void gigas_map(address_map &map); void oigas_io_map(address_map &map); void omega_io_map(address_map &map); void omega_map(address_map &map); void pbillrd_map(address_map &map); };