summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/sshangha.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/sshangha.h')
-rw-r--r--src/mame/includes/sshangha.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/src/mame/includes/sshangha.h b/src/mame/includes/sshangha.h
index 52cef935b4a..d77b2fdb1b1 100644
--- a/src/mame/includes/sshangha.h
+++ b/src/mame/includes/sshangha.h
@@ -10,10 +10,10 @@ class sshangha_state : public driver_device
public:
sshangha_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_deco146(*this, "ioprot"),
- m_deco_tilegen1(*this, "tilegen1"),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2"),
+ m_deco146(*this, "ioprot"),
+ m_deco_tilegen1(*this, "tilegen1"),
+ m_spriteram(*this, "spriteram"),
+ m_spriteram2(*this, "spriteram2"),
m_sound_shared_ram(*this, "sound_shared"),
m_pf1_rowscroll(*this, "pf1_rowscroll"),
m_pf2_rowscroll(*this, "pf2_rowscroll"),
@@ -26,8 +26,15 @@ public:
m_sprgen2(*this, "spritegen2"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_palette(*this, "palette") { }
+ m_palette(*this, "palette")
+ { }
+ void sshanghb(machine_config &config);
+ void sshangha(machine_config &config);
+
+ void init_sshangha();
+
+private:
optional_device<deco146_device> m_deco146;
required_device<deco16ic_device> m_deco_tilegen1;
required_shared_ptr<uint16_t> m_spriteram;
@@ -50,11 +57,10 @@ public:
int m_video_control;
DECO16IC_BANK_CB_MEMBER(bank_callback);
- DECLARE_READ16_MEMBER( sshangha_protection_region_8_146_r );
- DECLARE_WRITE16_MEMBER( sshangha_protection_region_8_146_w );
- DECLARE_READ16_MEMBER( sshangha_protection_region_d_146_r );
- DECLARE_WRITE16_MEMBER( sshangha_protection_region_d_146_w );
-
+ DECLARE_READ16_MEMBER(sshangha_protection_region_8_146_r);
+ DECLARE_WRITE16_MEMBER(sshangha_protection_region_8_146_w);
+ DECLARE_READ16_MEMBER(sshangha_protection_region_d_146_r);
+ DECLARE_WRITE16_MEMBER(sshangha_protection_region_d_146_w);
DECLARE_READ16_MEMBER(sshanghb_protection16_r);
DECLARE_READ16_MEMBER(deco_71_r);
@@ -65,7 +71,7 @@ public:
DECLARE_WRITE16_MEMBER(paletteram16_xbgr_word_be_tilelow_w);
DECLARE_WRITE16_MEMBER(paletteram16_xbgr_word_be_tilehigh_w);
DECLARE_WRITE16_MEMBER(sshangha_video_w);
- void init_sshangha();
+
virtual void machine_reset() override;
virtual void video_start() override;
uint32_t screen_update_sshangha(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
@@ -73,8 +79,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<palette_device> m_palette;
- void sshanghb(machine_config &config);
- void sshangha(machine_config &config);
+
void sshangha_map(address_map &map);
void sshangha_sound_map(address_map &map);
void sshanghb_map(address_map &map);