summaryrefslogtreecommitdiffstatshomepage
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.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/mame/includes/tutankhm.h b/src/mame/includes/tutankhm.h
index d7ac01137db..81a424768e0 100644
--- a/src/mame/includes/tutankhm.h
+++ b/src/mame/includes/tutankhm.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Mirko Buffoni
+
+#include "audio/timeplt.h"
+
class tutankhm_state : public driver_device
{
public:
@@ -8,11 +11,12 @@ public:
m_videoram(*this, "videoram"),
m_scroll(*this, "scroll"),
m_maincpu(*this, "maincpu"),
- m_palette(*this, "palette") { }
+ m_palette(*this, "palette"),
+ m_timeplt_audio(*this, "timeplt_audio") { }
/* memory pointers */
required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_scroll;
+ optional_shared_ptr<uint8_t> m_scroll;
/* video-related */
tilemap_t *m_bg_tilemap;
@@ -26,12 +30,14 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<palette_device> m_palette;
- DECLARE_WRITE8_MEMBER(irq_enable_w);
+ optional_device<timeplt_audio_device> m_timeplt_audio;
+ DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
DECLARE_WRITE8_MEMBER(tutankhm_bankselect_w);
- DECLARE_WRITE8_MEMBER(sound_mute_w);
- DECLARE_WRITE8_MEMBER(tutankhm_coin_counter_w);
- DECLARE_WRITE8_MEMBER(tutankhm_flip_screen_x_w);
- DECLARE_WRITE8_MEMBER(tutankhm_flip_screen_y_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);