summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/dcheese.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/dcheese.h')
-rw-r--r--src/mame/includes/dcheese.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/mame/includes/dcheese.h b/src/mame/includes/dcheese.h
index 8827249f50d..20a386124e2 100644
--- a/src/mame/includes/dcheese.h
+++ b/src/mame/includes/dcheese.h
@@ -6,6 +6,10 @@
HAR MadMax hardware
**************************************************************************/
+#ifndef MAME_INCLUDES_DCHEESE_H
+#define MAME_INCLUDES_DCHEESE_H
+
+#pragma once
#include "machine/gen_latch.h"
#include "sound/bsmt2000.h"
@@ -23,20 +27,27 @@ public:
m_audiocpu(*this, "audiocpu"),
m_screen(*this, "screen"),
m_bsmt(*this, "bsmt"),
- m_soundlatch(*this, "soundlatch") { }
+ m_soundlatch(*this, "soundlatch")
+ { }
void fredmem(machine_config &config);
void dcheese(machine_config &config);
DECLARE_CUSTOM_INPUT_MEMBER(sound_latch_state_r);
-private:
+protected:
enum
{
TIMER_BLITTER_SCANLINE,
TIMER_SIGNAL_IRQ
};
+ virtual void machine_start() override;
+ virtual void video_start() override;
+
+ virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
+
+private:
required_region_ptr<uint16_t> m_palrom;
required_region_ptr<uint8_t> m_gfxrom;
@@ -72,8 +83,6 @@ private:
DECLARE_WRITE16_MEMBER(blitter_vidparam_w);
DECLARE_WRITE16_MEMBER(blitter_unknown_w);
DECLARE_READ16_MEMBER(blitter_vidparam_r);
- virtual void machine_start() override;
- virtual void video_start() override;
DECLARE_PALETTE_INIT(dcheese);
uint32_t screen_update_dcheese(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(dcheese_vblank);
@@ -81,13 +90,11 @@ private:
void update_irq_state();
IRQ_CALLBACK_MEMBER(irq_callback);
void update_scanline_irq();
- void do_clear( );
- void do_blit( );
+ void do_clear();
+ void do_blit();
void main_cpu_map(address_map &map);
void sound_cpu_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
};
-/*----------- defined in drivers/dcheese.c -----------*/
+#endif // MAME_INCLUDES_DCHEESE_H