diff options
Diffstat (limited to 'src/mame/includes/gauntlet.h')
-rw-r--r-- | src/mame/includes/gauntlet.h | 82 |
1 files changed, 47 insertions, 35 deletions
diff --git a/src/mame/includes/gauntlet.h b/src/mame/includes/gauntlet.h index a20f0d5c8b0..f092bc9824f 100644 --- a/src/mame/includes/gauntlet.h +++ b/src/mame/includes/gauntlet.h @@ -5,6 +5,10 @@ Atari Gauntlet hardware *************************************************************************/ +#ifndef MAME_INCLUDES_GAUNTLET_H +#define MAME_INCLUDES_GAUNTLET_H + +#pragma once #include "machine/atarigen.h" #include "machine/74259.h" @@ -16,33 +20,30 @@ class gauntlet_state : public atarigen_state { public: - gauntlet_state(const machine_config &mconfig, device_type type, const char *tag) - : atarigen_state(mconfig, type, tag), - m_audiocpu(*this, "audiocpu"), - m_soundcomm(*this, "soundcomm"), - m_ym2151(*this, "ymsnd"), - m_pokey(*this, "pokey"), - m_tms5220(*this, "tms"), - m_soundctl(*this, "soundctl"), - m_playfield_tilemap(*this, "playfield"), - m_alpha_tilemap(*this, "alpha"), - m_mob(*this, "mob") { } - - required_device<cpu_device> m_audiocpu; - required_device<atari_sound_comm_device> m_soundcomm; - required_device<ym2151_device> m_ym2151; - required_device<pokey_device> m_pokey; - required_device<tms5220_device> m_tms5220; - required_device<ls259_device> m_soundctl; + gauntlet_state(const machine_config &mconfig, device_type type, const char *tag) : + atarigen_state(mconfig, type, tag), + m_audiocpu(*this, "audiocpu"), + m_soundcomm(*this, "soundcomm"), + m_ym2151(*this, "ymsnd"), + m_pokey(*this, "pokey"), + m_tms5220(*this, "tms"), + m_soundctl(*this, "soundctl"), + m_playfield_tilemap(*this, "playfield"), + m_alpha_tilemap(*this, "alpha"), + m_mob(*this, "mob") + { } - required_device<tilemap_device> m_playfield_tilemap; - required_device<tilemap_device> m_alpha_tilemap; - required_device<atari_motion_objects_device> m_mob; + DECLARE_DRIVER_INIT(gauntlet); + DECLARE_DRIVER_INIT(vindctr2); + void vindctr2(machine_config &config); + void gauntlet(machine_config &config); + void gaunt2p(machine_config &config); + void gauntlet2(machine_config &config); - uint16_t m_sound_reset_val; - uint8_t m_vindctr2_screen_refresh; - uint8_t m_playfield_tile_bank; - uint8_t m_playfield_color_bank; +protected: + virtual void machine_start() override; + virtual void machine_reset() override; + virtual void video_start() override; virtual void update_interrupts() override; virtual void scanline_update(screen_device &screen, int scanline) override; DECLARE_WRITE16_MEMBER(sound_reset_w); @@ -53,23 +54,34 @@ public: DECLARE_WRITE8_MEMBER(mixer_w); void swap_memory(void *ptr1, void *ptr2, int bytes); void common_init(int vindctr2); - DECLARE_DRIVER_INIT(gauntlet); - DECLARE_DRIVER_INIT(vindctr2); TILE_GET_INFO_MEMBER(get_alpha_tile_info); TILE_GET_INFO_MEMBER(get_playfield_tile_info); - DECLARE_MACHINE_START(gauntlet); - DECLARE_MACHINE_RESET(gauntlet); - DECLARE_VIDEO_START(gauntlet); uint32_t screen_update_gauntlet(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECLARE_WRITE16_MEMBER( gauntlet_xscroll_w ); DECLARE_WRITE16_MEMBER( gauntlet_yscroll_w ); - static const atari_motion_objects_config s_mob_config; void gauntlet_base(machine_config &config); - void vindctr2(machine_config &config); - void gauntlet(machine_config &config); - void gaunt2p(machine_config &config); - void gauntlet2(machine_config &config); void main_map(address_map &map); void sound_map(address_map &map); + +private: + required_device<cpu_device> m_audiocpu; + required_device<atari_sound_comm_device> m_soundcomm; + required_device<ym2151_device> m_ym2151; + required_device<pokey_device> m_pokey; + required_device<tms5220_device> m_tms5220; + required_device<ls259_device> m_soundctl; + + required_device<tilemap_device> m_playfield_tilemap; + required_device<tilemap_device> m_alpha_tilemap; + required_device<atari_motion_objects_device> m_mob; + + uint16_t m_sound_reset_val; + uint8_t m_vindctr2_screen_refresh; + uint8_t m_playfield_tile_bank; + uint8_t m_playfield_color_bank; + + static const atari_motion_objects_config s_mob_config; }; + +#endif // MAME_INCLUDES_GAUNTLET_H |