diff options
Diffstat (limited to 'src/mame/includes/wc90.h')
-rw-r--r-- | src/mame/includes/wc90.h | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/src/mame/includes/wc90.h b/src/mame/includes/wc90.h index 06ca8b7764a..f8cc077c37e 100644 --- a/src/mame/includes/wc90.h +++ b/src/mame/includes/wc90.h @@ -5,6 +5,11 @@ class wc90_state : public driver_device public: wc90_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_palette(*this, "palette"), + m_sprgen(*this, "spritegen"), m_fgvideoram(*this, "fgvideoram"), m_bgvideoram(*this, "bgvideoram"), m_txvideoram(*this, "txvideoram"), @@ -20,15 +25,15 @@ public: m_scroll1yhi(*this, "scroll1yhi"), m_scroll2ylo(*this, "scroll2ylo"), m_scroll2yhi(*this, "scroll2yhi"), - m_spriteram(*this, "spriteram"), - m_maincpu(*this, "maincpu"), - m_audiocpu(*this, "audiocpu"), - m_gfxdecode(*this, "gfxdecode"), - m_palette(*this, "palette"), - m_sprgen(*this, "spritegen") + m_spriteram(*this, "spriteram") { } - + + required_device<cpu_device> m_maincpu; + required_device<cpu_device> m_audiocpu; + required_device<gfxdecode_device> m_gfxdecode; + required_device<palette_device> m_palette; + required_device<tecmo_spr_device> m_sprgen; required_shared_ptr<UINT8> m_fgvideoram; required_shared_ptr<UINT8> m_bgvideoram; @@ -45,29 +50,28 @@ public: required_shared_ptr<UINT8> m_scroll1yhi; required_shared_ptr<UINT8> m_scroll2ylo; required_shared_ptr<UINT8> m_scroll2yhi; + required_shared_ptr<UINT8> m_spriteram; + tilemap_t *m_tx_tilemap; tilemap_t *m_fg_tilemap; tilemap_t *m_bg_tilemap; - required_shared_ptr<UINT8> m_spriteram; - DECLARE_WRITE8_MEMBER(wc90_bankswitch_w); - DECLARE_WRITE8_MEMBER(wc90_bankswitch1_w); - DECLARE_WRITE8_MEMBER(wc90_sound_command_w); - DECLARE_WRITE8_MEMBER(wc90_bgvideoram_w); - DECLARE_WRITE8_MEMBER(wc90_fgvideoram_w); - DECLARE_WRITE8_MEMBER(wc90_txvideoram_w); + + DECLARE_WRITE8_MEMBER(bankswitch_w); + DECLARE_WRITE8_MEMBER(bankswitch1_w); + DECLARE_WRITE8_MEMBER(sound_command_w); + DECLARE_WRITE8_MEMBER(bgvideoram_w); + DECLARE_WRITE8_MEMBER(fgvideoram_w); + DECLARE_WRITE8_MEMBER(txvideoram_w); + DECLARE_WRITE_LINE_MEMBER(irqhandler); + TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); TILE_GET_INFO_MEMBER(get_tx_tile_info); TILE_GET_INFO_MEMBER(track_get_bg_tile_info); TILE_GET_INFO_MEMBER(track_get_fg_tile_info); + virtual void video_start(); DECLARE_VIDEO_START(wc90t); - UINT32 screen_update_wc90(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - - DECLARE_WRITE_LINE_MEMBER(irqhandler); - required_device<cpu_device> m_maincpu; - required_device<cpu_device> m_audiocpu; - required_device<gfxdecode_device> m_gfxdecode; - required_device<palette_device> m_palette; - required_device<tecmo_spr_device> m_sprgen; + + UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; |