diff options
Diffstat (limited to 'src/mame/includes/funworld.h')
-rw-r--r-- | src/mame/includes/funworld.h | 209 |
1 files changed, 0 insertions, 209 deletions
diff --git a/src/mame/includes/funworld.h b/src/mame/includes/funworld.h deleted file mode 100644 index a4a7dffa4fb..00000000000 --- a/src/mame/includes/funworld.h +++ /dev/null @@ -1,209 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Roberto Fresca, Peter Ferrie -#ifndef MAME_INCLUDES_FUNWORLD_H -#define MAME_INCLUDES_FUNWORLD_H - -#pragma once - -#include "emupal.h" -#include "machine/i2cmem.h" -#include "sound/ay8910.h" -#include "video/mc6845.h" -#include "tilemap.h" - -class funworld_state : public driver_device -{ -public: - funworld_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu"), - m_gfxdecode(*this, "gfxdecode"), - m_videoram(*this, "videoram"), - m_colorram(*this, "colorram"), - m_palette(*this, "palette"), - m_i2cmem(*this, "i2cmem"), - m_lamps(*this, "lamp%u", 0U) - { } - - void royalcd1(machine_config &config); - void royalcd2(machine_config &config); - void fw1stpal(machine_config &config); - void fw2ndpal(machine_config &config); - void saloon(machine_config &config); - void cuoreuno(machine_config &config); - void funquiz(machine_config &config); - void witchryl(machine_config &config); - void fw_brick_1(machine_config &config); - void fw_brick_2(machine_config &config); - void gratispk(machine_config &config); - - void init_saloon(); - void init_mongolnw(); - void init_soccernw(); - void init_tabblue(); - void init_dino4(); - void init_ctunk(); - void init_jolycdig(); - void init_impera16(); - -protected: - void funworld_videoram_w(offs_t offset, uint8_t data); - void funworld_colorram_w(offs_t offset, uint8_t data); - void funworld_lamp_a_w(uint8_t data); - void funworld_lamp_b_w(uint8_t data); - - virtual void machine_start() override { m_lamps.resolve(); } - virtual void video_start() override; - void funworld_palette(palette_device &palette) const; - uint32_t screen_update_funworld(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - TILE_GET_INFO_MEMBER(get_bg_tile_info); - - void magicrd2_map(address_map &map); - - required_device<cpu_device> m_maincpu; - required_device<gfxdecode_device> m_gfxdecode; - tilemap_t *m_bg_tilemap = nullptr; - -private: - uint8_t questions_r(offs_t offset); - void question_bank_w(uint8_t data); - DECLARE_WRITE_LINE_MEMBER(pia1_ca2_w); - uint8_t funquiz_ay8910_a_r(); - uint8_t funquiz_ay8910_b_r(); - - void cuoreuno_map(address_map &map); - void funquiz_map(address_map &map); - void funworld_map(address_map &map); - void fw_brick_map(address_map &map); - void saloon_map(address_map &map); - void witchryl_map(address_map &map); - void gratispk_map(address_map &map); - - required_shared_ptr<uint8_t> m_videoram; - required_shared_ptr<uint8_t> m_colorram; - required_device<palette_device> m_palette; - optional_device<i2cmem_device> m_i2cmem; - output_finder<8> m_lamps; -}; - - -class magicrd2_state : public funworld_state -{ -public: - using funworld_state::funworld_state; - - void magicrd2(machine_config &config); - - void init_magicd2b(); - void init_magicd2c(); - -protected: - virtual void video_start() override; -}; - - -class lunapark_state : public funworld_state -{ -public: - using funworld_state::funworld_state; - - void lunapark(machine_config &config); - -protected: - virtual void machine_start() override; - virtual void machine_reset() override; - -private: - void lunapark_map(address_map &map); -}; - - -class chinatow_state : public funworld_state -{ -public: - using funworld_state::funworld_state; - - void chinatow(machine_config &config); - void rcdino4(machine_config &config); - - void init_rcdino4(); - void init_rcdinch(); - -protected: - virtual void video_start() override; - -private: - uint8_t chinatow_r_32f0(offs_t offset); - - void chinatow_map(address_map &map); -}; - - -class multiwin_state : public funworld_state -{ -public: - - using funworld_state::funworld_state; - - void multiwin(machine_config& config); - - void driver_init() override; - -protected: - virtual void video_start() override; - -private: - cpu_device* _maincpu {}; - uint8_t multiwin_opcode_r(offs_t offset); - - void multiwin_opcodes_map(address_map& map); -}; - -class royalcrdf_state : public funworld_state -{ -public: - using funworld_state::funworld_state; - - void royalcrdf(machine_config& config); - - void driver_init() override; - -private: - cpu_device* _maincpu {}; - uint8_t royalcrdf_opcode_r(offs_t offset); - - void royalcrdf_map(address_map& map); - void royalcrdf_opcodes_map(address_map& map); -}; - -class intergames_state : public funworld_state -{ -public: - intergames_state(const machine_config &mconfig, device_type type, const char *tag) : - funworld_state(mconfig, type, tag), - m_crtc(*this, "crtc"), - m_ay8910(*this, "ay8910"), - m_crtc_selected(false) - { } - - void intrgmes(machine_config &config); - -protected: - virtual void driver_init() override; - virtual void machine_reset() override; - -private: - uint8_t crtc_or_psg_r(offs_t offset); - void crtc_or_psg_w(offs_t offset, uint8_t data); - uint8_t prot_r(offs_t offset); - void prot_w(offs_t offset, uint8_t data); - - void intergames_map(address_map &map); - - required_device<mc6845_device> m_crtc; - required_device<ay8910_device> m_ay8910; - - bool m_crtc_selected; -}; - -#endif // MAME_INCLUDES_FUNWORLD_H |