summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/crospang.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/crospang.h')
-rw-r--r--src/mame/includes/crospang.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/mame/includes/crospang.h b/src/mame/includes/crospang.h
index a5aecdada51..4a5058731e4 100644
--- a/src/mame/includes/crospang.h
+++ b/src/mame/includes/crospang.h
@@ -6,6 +6,7 @@
*************************************************************************/
+#include "machine/gen_latch.h"
#include "video/decospr.h"
class crospang_state : public driver_device
@@ -16,15 +17,15 @@ public:
m_fg_videoram(*this, "fg_videoram"),
m_bg_videoram(*this, "bg_videoram"),
m_spriteram(*this, "spriteram"),
- m_sprgen(*this, "spritegen"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_sprgen(*this, "spritegen"),
+ m_gfxdecode(*this, "gfxdecode"),
+ m_soundlatch(*this, "soundlatch") { }
/* memory pointers */
required_shared_ptr<UINT16> m_fg_videoram;
required_shared_ptr<UINT16> m_bg_videoram;
required_shared_ptr<UINT16> m_spriteram;
- optional_device<decospr_device> m_sprgen;
/* video-related */
tilemap_t *m_bg_layer;
@@ -32,6 +33,11 @@ public:
int m_bestri_tilebank;
/* devices */
+ required_device<cpu_device> m_maincpu;
+ required_device<decospr_device> m_sprgen;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<generic_latch_8_device> m_soundlatch;
+
DECLARE_WRITE16_MEMBER(crospang_soundlatch_w);
DECLARE_WRITE16_MEMBER(bestri_tilebank_w);
DECLARE_WRITE16_MEMBER(bestri_bg_scrolly_w);
@@ -52,6 +58,4 @@ public:
virtual void video_start() override;
UINT32 screen_update_crospang(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void tumblepb_gfx1_rearrange();
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
};