summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/tecmo16.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/tecmo16.h')
-rw-r--r--src/mame/includes/tecmo16.h65
1 files changed, 36 insertions, 29 deletions
diff --git a/src/mame/includes/tecmo16.h b/src/mame/includes/tecmo16.h
index dcae6d6b9dd..9aa9c30c168 100644
--- a/src/mame/includes/tecmo16.h
+++ b/src/mame/includes/tecmo16.h
@@ -6,26 +6,36 @@ class tecmo16_state : public driver_device
public:
tecmo16_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_videoram2(*this, "videoram2"),
- m_colorram2(*this, "colorram2"),
- m_charram(*this, "charram"),
- m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
m_palette(*this, "palette"),
m_sprgen(*this, "spritegen"),
- m_mixer(*this, "mixer")
+ m_mixer(*this, "mixer"),
+ m_videoram(*this, "videoram"),
+ m_colorram(*this, "colorram"),
+ m_videoram2(*this, "videoram2"),
+ m_colorram2(*this, "colorram2"),
+ m_charram(*this, "charram"),
+ m_spriteram(*this, "spriteram")
{ }
+ required_device<cpu_device> m_maincpu;
+ required_device<cpu_device> m_audiocpu;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+ required_device<tecmo_spr_device> m_sprgen;
+ required_device<tecmo_mix_device> m_mixer;
+
required_shared_ptr<UINT16> m_videoram;
required_shared_ptr<UINT16> m_colorram;
required_shared_ptr<UINT16> m_videoram2;
required_shared_ptr<UINT16> m_colorram2;
required_shared_ptr<UINT16> m_charram;
+ required_shared_ptr<UINT16> m_spriteram;
+
tilemap_t *m_fg_tilemap;
tilemap_t *m_bg_tilemap;
tilemap_t *m_tx_tilemap;
@@ -40,33 +50,30 @@ public:
UINT16 m_scroll2_y_w;
UINT16 m_scroll_char_x_w;
UINT16 m_scroll_char_y_w;
- required_shared_ptr<UINT16> m_spriteram;
- DECLARE_WRITE16_MEMBER(tecmo16_sound_command_w);
- DECLARE_WRITE16_MEMBER(tecmo16_videoram_w);
- DECLARE_WRITE16_MEMBER(tecmo16_colorram_w);
- DECLARE_WRITE16_MEMBER(tecmo16_videoram2_w);
- DECLARE_WRITE16_MEMBER(tecmo16_colorram2_w);
- DECLARE_WRITE16_MEMBER(tecmo16_charram_w);
- DECLARE_WRITE16_MEMBER(tecmo16_flipscreen_w);
- DECLARE_WRITE16_MEMBER(tecmo16_scroll_x_w);
- DECLARE_WRITE16_MEMBER(tecmo16_scroll_y_w);
- DECLARE_WRITE16_MEMBER(tecmo16_scroll2_x_w);
- DECLARE_WRITE16_MEMBER(tecmo16_scroll2_y_w);
- DECLARE_WRITE16_MEMBER(tecmo16_scroll_char_x_w);
- DECLARE_WRITE16_MEMBER(tecmo16_scroll_char_y_w);
+
+ DECLARE_WRITE16_MEMBER(sound_command_w);
+ DECLARE_WRITE16_MEMBER(videoram_w);
+ DECLARE_WRITE16_MEMBER(colorram_w);
+ DECLARE_WRITE16_MEMBER(videoram2_w);
+ DECLARE_WRITE16_MEMBER(colorram2_w);
+ DECLARE_WRITE16_MEMBER(charram_w);
+ DECLARE_WRITE16_MEMBER(flipscreen_w);
+ DECLARE_WRITE16_MEMBER(scroll_x_w);
+ DECLARE_WRITE16_MEMBER(scroll_y_w);
+ DECLARE_WRITE16_MEMBER(scroll2_x_w);
+ DECLARE_WRITE16_MEMBER(scroll2_y_w);
+ DECLARE_WRITE16_MEMBER(scroll_char_x_w);
+ DECLARE_WRITE16_MEMBER(scroll_char_y_w);
+
TILE_GET_INFO_MEMBER(fg_get_tile_info);
TILE_GET_INFO_MEMBER(bg_get_tile_info);
TILE_GET_INFO_MEMBER(tx_get_tile_info);
+
virtual void video_start();
DECLARE_VIDEO_START(ginkun);
DECLARE_VIDEO_START(riot);
- UINT32 screen_update_tecmo16(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<tecmo_spr_device> m_sprgen;
- required_device<tecmo_mix_device> m_mixer;
+ UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+
+ void save_state();
};