summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/taotaido.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/taotaido.h')
-rw-r--r--src/mame/includes/taotaido.h47
1 files changed, 26 insertions, 21 deletions
diff --git a/src/mame/includes/taotaido.h b/src/mame/includes/taotaido.h
index effe660048d..56c75aa93a9 100644
--- a/src/mame/includes/taotaido.h
+++ b/src/mame/includes/taotaido.h
@@ -3,23 +3,26 @@ class taotaido_state : public driver_device
public:
taotaido_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
+ m_maincpu(*this, "maincpu"),
+ m_audiocpu(*this, "audiocpu"),
+ m_gfxdecode(*this, "gfxdecode"),
+ m_spr(*this, "vsystem_spr"),
m_spriteram(*this, "spriteram"),
m_spriteram2(*this, "spriteram2"),
m_scrollram(*this, "scrollram"),
- m_bgram(*this, "bgram"),
- m_spr(*this, "vsystem_spr"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_bgram(*this, "bgram") { }
+
+ required_device<cpu_device> m_maincpu;
+ required_device<cpu_device> m_audiocpu;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<vsystem_spr_device> m_spr;
- int m_pending_command;
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_spriteram2;
required_shared_ptr<UINT16> m_scrollram;
required_shared_ptr<UINT16> m_bgram;
- required_device<vsystem_spr_device> m_spr;
-
- UINT32 taotaido_tile_callback( UINT32 code );
+
+ int m_pending_command;
UINT16 m_sprite_character_bank_select[8];
UINT16 m_video_bank_select[8];
tilemap_t *m_bg_tilemap;
@@ -27,20 +30,22 @@ public:
UINT16 *m_spriteram_older;
UINT16 *m_spriteram2_old;
UINT16 *m_spriteram2_older;
+
DECLARE_READ16_MEMBER(pending_command_r);
DECLARE_WRITE16_MEMBER(sound_command_w);
DECLARE_WRITE8_MEMBER(pending_command_clear_w);
- DECLARE_WRITE8_MEMBER(taotaido_sh_bankswitch_w);
- DECLARE_WRITE16_MEMBER(taotaido_sprite_character_bank_select_w);
- DECLARE_WRITE16_MEMBER(taotaido_tileregs_w);
- DECLARE_WRITE16_MEMBER(taotaido_bgvideoram_w);
- TILE_GET_INFO_MEMBER(taotaido_bg_tile_info);
- TILEMAP_MAPPER_MEMBER(taotaido_tilemap_scan_rows);
+ DECLARE_WRITE8_MEMBER(sh_bankswitch_w);
+ DECLARE_WRITE16_MEMBER(sprite_character_bank_select_w);
+ DECLARE_WRITE16_MEMBER(tileregs_w);
+ DECLARE_WRITE16_MEMBER(bgvideoram_w);
+
+ TILE_GET_INFO_MEMBER(bg_tile_info);
+ TILEMAP_MAPPER_MEMBER(tilemap_scan_rows);
+
+ virtual void machine_start();
virtual void video_start();
- UINT32 screen_update_taotaido(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void screen_eof_taotaido(screen_device &screen, bool state);
- DECLARE_WRITE_LINE_MEMBER(irqhandler);
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
+
+ UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ void screen_eof(screen_device &screen, bool state);
+ UINT32 tile_callback( UINT32 code );
};