summaryrefslogtreecommitdiffstats
path: root/src/mame/includes/tutankhm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/tutankhm.h')
-rw-r--r--src/mame/includes/tutankhm.h37
1 files changed, 21 insertions, 16 deletions
diff --git a/src/mame/includes/tutankhm.h b/src/mame/includes/tutankhm.h
index d79f7caa167..06fd1908502 100644
--- a/src/mame/includes/tutankhm.h
+++ b/src/mame/includes/tutankhm.h
@@ -6,13 +6,31 @@
class tutankhm_state : public driver_device
{
public:
- tutankhm_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ tutankhm_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_videoram(*this, "videoram"),
m_scroll(*this, "scroll"),
m_maincpu(*this, "maincpu"),
m_palette(*this, "palette"),
- m_timeplt_audio(*this, "timeplt_audio") { }
+ m_timeplt_audio(*this, "timeplt_audio")
+ {
+ }
+
+ void tutankhm(machine_config &config);
+
+protected:
+ DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
+ DECLARE_WRITE8_MEMBER(tutankhm_bankselect_w);
+ DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
+ DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
+ DECLARE_WRITE8_MEMBER(sound_on_w);
+ DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
+ DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
+ virtual void machine_start() override;
+ virtual void machine_reset() override;
+ uint32_t screen_update_tutankhm(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ DECLARE_WRITE_LINE_MEMBER(vblank_irq);
+ void main_map(address_map &map);
/* memory pointers */
required_shared_ptr<uint8_t> m_videoram;
@@ -31,17 +49,4 @@ public:
required_device<cpu_device> m_maincpu;
required_device<palette_device> m_palette;
optional_device<timeplt_audio_device> m_timeplt_audio;
- DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
- DECLARE_WRITE8_MEMBER(tutankhm_bankselect_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE8_MEMBER(sound_on_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
- DECLARE_MACHINE_START(tutankhm);
- DECLARE_MACHINE_RESET(tutankhm);
- uint32_t screen_update_tutankhm(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void tutankhm(machine_config &config);
- void main_map(address_map &map);
};