diff options
Diffstat (limited to 'src/mame/includes/shadfrce.h')
-rw-r--r-- | src/mame/includes/shadfrce.h | 73 |
1 files changed, 39 insertions, 34 deletions
diff --git a/src/mame/includes/shadfrce.h b/src/mame/includes/shadfrce.h index 9ac154bc107..e2e12198cb8 100644 --- a/src/mame/includes/shadfrce.h +++ b/src/mame/includes/shadfrce.h @@ -5,59 +5,64 @@ class shadfrce_state : public driver_device public: shadfrce_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), - m_fgvideoram(*this, "fgvideoram"), - m_bg0videoram(*this, "bg0videoram"), - m_bg1videoram(*this, "bg1videoram"), - m_spvideoram(*this, "spvideoram"), m_maincpu(*this, "maincpu"), m_audiocpu(*this, "audiocpu"), m_oki(*this, "oki"), m_gfxdecode(*this, "gfxdecode"), m_screen(*this, "screen"), - m_palette(*this, "palette") { } + m_palette(*this, "palette"), + m_fgvideoram(*this, "fgvideoram"), + m_bg0videoram(*this, "bg0videoram"), + m_bg1videoram(*this, "bg1videoram"), + m_spvideoram(*this, "spvideoram") { } - tilemap_t *m_fgtilemap; - tilemap_t *m_bg0tilemap; - tilemap_t *m_bg1tilemap; + required_device<cpu_device> m_maincpu; + required_device<cpu_device> m_audiocpu; + required_device<okim6295_device> m_oki; + required_device<gfxdecode_device> m_gfxdecode; + required_device<screen_device> m_screen; + required_device<palette_device> m_palette; required_shared_ptr<UINT16> m_fgvideoram; required_shared_ptr<UINT16> m_bg0videoram; required_shared_ptr<UINT16> m_bg1videoram; required_shared_ptr<UINT16> m_spvideoram; - UINT16 *m_spvideoram_old; + UINT16 *m_spvideoram_old; + tilemap_t *m_fgtilemap; + tilemap_t *m_bg0tilemap; + tilemap_t *m_bg1tilemap; int m_video_enable; int m_irqs_enable; int m_raster_scanline; int m_raster_irq_enable; int m_vblank; int m_prev_value; - DECLARE_WRITE16_MEMBER(shadfrce_flip_screen); - DECLARE_READ16_MEMBER(shadfrce_input_ports_r); - DECLARE_WRITE16_MEMBER(shadfrce_sound_brt_w); - DECLARE_WRITE16_MEMBER(shadfrce_irq_ack_w); - DECLARE_WRITE16_MEMBER(shadfrce_irq_w); - DECLARE_WRITE16_MEMBER(shadfrce_scanline_w); - DECLARE_WRITE16_MEMBER(shadfrce_fgvideoram_w); - DECLARE_WRITE16_MEMBER(shadfrce_bg0videoram_w); - DECLARE_WRITE16_MEMBER(shadfrce_bg1videoram_w); - DECLARE_WRITE16_MEMBER(shadfrce_bg0scrollx_w); - DECLARE_WRITE16_MEMBER(shadfrce_bg0scrolly_w); - DECLARE_WRITE16_MEMBER(shadfrce_bg1scrollx_w); - DECLARE_WRITE16_MEMBER(shadfrce_bg1scrolly_w); + + DECLARE_WRITE16_MEMBER(flip_screen); + DECLARE_READ16_MEMBER(input_ports_r); + DECLARE_WRITE16_MEMBER(sound_brt_w); + DECLARE_WRITE16_MEMBER(irq_ack_w); + DECLARE_WRITE16_MEMBER(irq_w); + DECLARE_WRITE16_MEMBER(scanline_w); + DECLARE_WRITE16_MEMBER(fgvideoram_w); + DECLARE_WRITE16_MEMBER(bg0videoram_w); + DECLARE_WRITE16_MEMBER(bg1videoram_w); + DECLARE_WRITE16_MEMBER(bg0scrollx_w); + DECLARE_WRITE16_MEMBER(bg0scrolly_w); + DECLARE_WRITE16_MEMBER(bg1scrollx_w); + DECLARE_WRITE16_MEMBER(bg1scrolly_w); DECLARE_WRITE8_MEMBER(oki_bankswitch_w); - TILE_GET_INFO_MEMBER(get_shadfrce_fgtile_info); - TILE_GET_INFO_MEMBER(get_shadfrce_bg0tile_info); - TILE_GET_INFO_MEMBER(get_shadfrce_bg1tile_info); + + TILE_GET_INFO_MEMBER(get_fgtile_info); + TILE_GET_INFO_MEMBER(get_bg0tile_info); + TILE_GET_INFO_MEMBER(get_bg1tile_info); + virtual void video_start(); - UINT32 screen_update_shadfrce(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void screen_eof_shadfrce(screen_device &screen, bool state); - TIMER_DEVICE_CALLBACK_MEMBER(shadfrce_scanline); + + TIMER_DEVICE_CALLBACK_MEMBER(scanline); + + UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + void screen_eof(screen_device &screen, bool state); void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect ); - required_device<cpu_device> m_maincpu; - required_device<cpu_device> m_audiocpu; - required_device<okim6295_device> m_oki; - required_device<gfxdecode_device> m_gfxdecode; - required_device<screen_device> m_screen; - required_device<palette_device> m_palette; }; |