diff options
Diffstat (limited to 'src/mame/includes/redalert.h')
-rw-r--r-- | src/mame/includes/redalert.h | 53 |
1 files changed, 34 insertions, 19 deletions
diff --git a/src/mame/includes/redalert.h b/src/mame/includes/redalert.h index da87a21ccc5..b3aa9eb9d25 100644 --- a/src/mame/includes/redalert.h +++ b/src/mame/includes/redalert.h @@ -8,6 +8,10 @@ ask. - Mike Balfour (mab22@po.cwru.edu) ****************************************************************************/ +#ifndef MAME_INCLUDES_REDALERT_H +#define MAME_INCLUDES_REDALERT_H + +#pragma once #include "machine/gen_latch.h" #include "sound/hc55516.h" @@ -16,8 +20,8 @@ class redalert_state : public driver_device { public: - redalert_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + redalert_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_bitmap_videoram(*this, "bitmap_videoram"), m_charmap_videoram(*this, "charram"), m_video_control(*this, "video_control"), @@ -27,10 +31,9 @@ public: m_cvsd(*this, "cvsd"), m_screen(*this, "screen"), m_soundlatch(*this, "soundlatch"), - m_soundlatch2(*this, "soundlatch2") { } - - uint8_t m_ay8910_latch_1; - uint8_t m_ay8910_latch_2; + m_soundlatch2(*this, "soundlatch2") + { + } required_shared_ptr<uint8_t> m_bitmap_videoram; required_shared_ptr<uint8_t> m_charmap_videoram; @@ -58,8 +61,6 @@ public: DECLARE_WRITE8_MEMBER(demoneye_audio_command_w); DECLARE_VIDEO_START(redalert); DECLARE_VIDEO_START(ww3); - DECLARE_SOUND_START(redalert); - DECLARE_SOUND_START(demoneye); uint32_t screen_update_redalert(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_demoneye(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_panther(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -74,24 +75,38 @@ public: void get_pens(pen_t *pens); void get_panther_pens(pen_t *pens); void demoneye(machine_config &config); - void demoneye_video(machine_config &config); - void demoneye_audio(machine_config &config); void ww3(machine_config &config); - void ww3_video(machine_config &config); - void ww3_audio(machine_config &config); void panther(machine_config &config); - void panther_video(machine_config &config); void redalert(machine_config &config); - void redalert_video(machine_config &config); + +protected: + virtual void sound_start() override; + void redalert_video_common(machine_config &config); - void redalert_audio(machine_config &config); + void redalert_video(machine_config &config); + void ww3_video(machine_config &config); + void panther_video(machine_config &config); + void demoneye_video(machine_config &config); + void redalert_audio_m37b(machine_config &config); void redalert_audio_voice(machine_config &config); - void demoneye_audio_map(address_map &map); - void demoneye_main_map(address_map &map); + void redalert_audio(machine_config &config); + void ww3_audio(machine_config &config); + void demoneye_audio(machine_config &config); + + void redalert_main_map(address_map &map); + void ww3_main_map(address_map &map); void panther_main_map(address_map &map); + void demoneye_main_map(address_map &map); + void redalert_audio_map(address_map &map); - void redalert_main_map(address_map &map); + void demoneye_audio_map(address_map &map); + void redalert_voice_map(address_map &map); - void ww3_main_map(address_map &map); + +private: + uint8_t m_ay8910_latch_1; + uint8_t m_ay8910_latch_2; }; + +#endif // MAME_INCLUDES_REDALERT_H |