// license:BSD-3-Clause // copyright-holders:David Haywood, MetalliC /* Multifish */ #include "sound/ay8910.h" #include "cpu/z80/z80.h" #include "machine/timekpr.h" #include "machine/watchdog.h" #include "machine/ticket.h" #include "screen.h" #define igrosoft_gamble_ROM_SIZE 0x80000 #define igrosoft_gamble_VIDRAM_SIZE (0x2000*0x04) class igrosoft_gamble_state : public driver_device { public: igrosoft_gamble_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_m48t35(*this, "m48t35" ), m_gfxdecode(*this, "gfxdecode"), m_screen(*this, "screen"), m_palette(*this, "palette"), m_hopper(*this, "hopper") { } /* Video related */ int m_disp_enable; int m_xor_paltype; int m_xor_palette; tilemap_t *m_tilemap; tilemap_t *m_reel_tilemap; /* Misc related */ uint8_t m_rambk; uint8_t m_vid[igrosoft_gamble_VIDRAM_SIZE]; DECLARE_WRITE8_MEMBER(igrosoft_gamble_vid_w); DECLARE_WRITE8_MEMBER(igrosoft_gamble_bank_w); DECLARE_READ8_MEMBER(bankedram_r); DECLARE_WRITE8_MEMBER(bankedram_w); DECLARE_WRITE8_MEMBER(igrosoft_gamble_rambank_w); DECLARE_READ8_MEMBER(ray_r); DECLARE_WRITE8_MEMBER(igrosoft_gamble_hopper_w); DECLARE_WRITE8_MEMBER(rollfr_hopper_w); DECLARE_WRITE8_MEMBER(igrosoft_gamble_lamps1_w); DECLARE_WRITE8_MEMBER(igrosoft_gamble_lamps2_w); DECLARE_WRITE8_MEMBER(igrosoft_gamble_lamps3_w); DECLARE_WRITE8_MEMBER(igrosoft_gamble_counters_w); DECLARE_WRITE8_MEMBER(igrosoft_gamble_f3_w); DECLARE_WRITE8_MEMBER(igrosoft_gamble_dispenable_w); DECLARE_READ8_MEMBER(igrosoft_gamble_timekeeper_r); DECLARE_WRITE8_MEMBER(igrosoft_gamble_timekeeper_w); void init_customl(); void init_island2l(); void init_keksl(); void init_pirate2l(); void init_fcockt2l(); void init_sweetl2l(); void init_gnomel(); void init_crzmonent(); void init_fcocktent(); void init_garageent(); void init_rclimbent(); void init_sweetl2ent(); void init_resdntent(); void init_island2ent(); void init_pirate2ent(); void init_keksent(); void init_gnomeent(); void init_lhauntent(); void init_fcockt2ent(); void init_crzmon2(); void init_crzmon2lot(); void init_crzmon2ent(); TILE_GET_INFO_MEMBER(get_igrosoft_gamble_tile_info); TILE_GET_INFO_MEMBER(get_igrosoft_gamble_reel_tile_info); virtual void machine_start() override; virtual void machine_reset() override; virtual void video_start() override; uint32_t screen_update_igrosoft_gamble(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device m_maincpu; required_device m_m48t35; required_device m_gfxdecode; required_device m_screen; required_device m_palette; required_device m_hopper; void rollfr(machine_config &config); void igrosoft_gamble(machine_config &config); void igrosoft_gamble_map(address_map &map); void igrosoft_gamble_portmap(address_map &map); void rollfr_portmap(address_map &map); }; INPUT_PORTS_EXTERN( igrosoft_gamble );