summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/shangkid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/shangkid.h')
-rw-r--r--src/mame/includes/shangkid.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/mame/includes/shangkid.h b/src/mame/includes/shangkid.h
index 6faa4cd51ec..025a1353786 100644
--- a/src/mame/includes/shangkid.h
+++ b/src/mame/includes/shangkid.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Phil Stroffolino
+
+#include "sound/ay8910.h"
+
class shangkid_state : public driver_device
{
public:
@@ -8,6 +11,7 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_bbx(*this, "bbx"),
+ m_aysnd(*this, "aysnd"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette"),
m_videoram(*this, "videoram"),
@@ -17,6 +21,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_bbx;
+ required_device<ay8910_device> m_aysnd;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
@@ -24,14 +29,22 @@ public:
optional_shared_ptr<uint8_t> m_spriteram;
optional_shared_ptr<uint8_t> m_videoreg;
- uint8_t m_bbx_sound_enable;
+ bool m_int_enable[2];
+ bool m_nmi_enable[2];
uint8_t m_sound_latch;
int m_gfx_type;
tilemap_t *m_background;
// shangkid and chinhero
- DECLARE_WRITE_LINE_MEMBER(cpu_reset_w);
DECLARE_WRITE_LINE_MEMBER(sound_enable_w);
+ DECLARE_WRITE_LINE_MEMBER(int_enable_1_w);
+ DECLARE_WRITE_LINE_MEMBER(int_enable_2_w);
+ DECLARE_WRITE_LINE_MEMBER(nmi_enable_1_w);
+ DECLARE_WRITE_LINE_MEMBER(nmi_enable_2_w);
+ DECLARE_WRITE_LINE_MEMBER(irq_1_w);
+ DECLARE_WRITE_LINE_MEMBER(irq_2_w);
+ DECLARE_WRITE8_MEMBER(nmiq_1_w);
+ DECLARE_WRITE8_MEMBER(nmiq_2_w);
DECLARE_READ8_MEMBER(soundlatch_r);
DECLARE_WRITE8_MEMBER(videoram_w);
DECLARE_WRITE8_MEMBER(ay8910_portb_w);
@@ -42,9 +55,9 @@ public:
TILE_GET_INFO_MEMBER(get_bg_tile_info);
+ DECLARE_DRIVER_INIT(dynamski);
DECLARE_DRIVER_INIT(shangkid);
DECLARE_DRIVER_INIT(chinhero);
- DECLARE_MACHINE_RESET(chinhero);
DECLARE_VIDEO_START(shangkid);
DECLARE_PALETTE_INIT(dynamski);
DECLARE_MACHINE_RESET(shangkid);