summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/fuukifg2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/fuukifg2.h')
-rw-r--r--src/mame/includes/fuukifg2.h56
1 files changed, 31 insertions, 25 deletions
diff --git a/src/mame/includes/fuukifg2.h b/src/mame/includes/fuukifg2.h
index 411f2c07c3e..c323b2218f4 100644
--- a/src/mame/includes/fuukifg2.h
+++ b/src/mame/includes/fuukifg2.h
@@ -13,59 +13,65 @@ public:
fuuki16_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_vram(*this, "vram"),
- m_vregs(*this, "vregs"),
- m_unknown(*this, "unknown"),
- m_priority(*this, "priority"),
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_fuukivid(*this, "fuukivid")
+ m_fuukivid(*this, "fuukivid"),
+ m_vram(*this, "vram"),
+ m_vregs(*this, "vregs"),
+ m_unknown(*this, "unknown"),
+ m_priority(*this, "priority")
{ }
+ /* devices */
+ 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_device<fuukivid_device> m_fuukivid;
+
/* memory pointers */
required_shared_ptr_array<UINT16,4> m_vram;
required_shared_ptr<UINT16> m_vregs;
required_shared_ptr<UINT16> m_unknown;
required_shared_ptr<UINT16> m_priority;
-// UINT16 * m_paletteram; // currently this uses generic palette handling
/* video-related */
tilemap_t *m_tilemap[4];
/* misc */
+ emu_timer *m_level_1_interrupt_timer;
+ emu_timer *m_vblank_interrupt_timer;
emu_timer *m_raster_interrupt_timer;
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- DECLARE_WRITE16_MEMBER(fuuki16_vregs_w);
- DECLARE_WRITE16_MEMBER(fuuki16_sound_command_w);
- DECLARE_WRITE8_MEMBER(fuuki16_sound_rombank_w);
- DECLARE_WRITE16_MEMBER(fuuki16_vram_0_w);
- DECLARE_WRITE16_MEMBER(fuuki16_vram_1_w);
- DECLARE_WRITE16_MEMBER(fuuki16_vram_2_w);
- DECLARE_WRITE16_MEMBER(fuuki16_vram_3_w);
- DECLARE_WRITE8_MEMBER(fuuki16_oki_banking_w);
+ DECLARE_WRITE16_MEMBER(vregs_w);
+ DECLARE_WRITE16_MEMBER(sound_command_w);
+ DECLARE_WRITE8_MEMBER(sound_rombank_w);
+ DECLARE_WRITE16_MEMBER(vram_0_w);
+ DECLARE_WRITE16_MEMBER(vram_1_w);
+ DECLARE_WRITE16_MEMBER(vram_2_w);
+ DECLARE_WRITE16_MEMBER(vram_3_w);
+ DECLARE_WRITE8_MEMBER(oki_banking_w);
+
TILE_GET_INFO_MEMBER(get_tile_info_0);
TILE_GET_INFO_MEMBER(get_tile_info_1);
TILE_GET_INFO_MEMBER(get_tile_info_2);
TILE_GET_INFO_MEMBER(get_tile_info_3);
+
virtual void machine_start();
virtual void machine_reset();
virtual void video_start();
- UINT32 screen_update_fuuki16(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+
+ UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
inline void get_tile_info(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_);
- inline void fuuki16_vram_w(offs_t offset, UINT16 data, UINT16 mem_mask, int _N_);
- void fuuki16_draw_layer( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri );
- 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_device<fuukivid_device> m_fuukivid;
+ inline void vram_w(offs_t offset, UINT16 data, UINT16 mem_mask, int _N_);
+ void draw_layer( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri );
+
protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
};