summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/lordgun.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/lordgun.h')
-rw-r--r--src/mame/includes/lordgun.h45
1 files changed, 26 insertions, 19 deletions
diff --git a/src/mame/includes/lordgun.h b/src/mame/includes/lordgun.h
index a9f4e9d3906..16fabd759b2 100644
--- a/src/mame/includes/lordgun.h
+++ b/src/mame/includes/lordgun.h
@@ -17,12 +17,6 @@ class lordgun_state : public driver_device
public:
lordgun_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_priority_ram(*this, "priority_ram"),
- m_scrollram(*this, "scrollram"),
- m_spriteram(*this, "spriteram"),
- m_vram(*this, "vram"),
- m_scroll_x(*this, "scroll_x"),
- m_scroll_y(*this, "scroll_y") ,
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_oki(*this, "oki"),
@@ -30,24 +24,39 @@ public:
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
m_palette(*this, "palette"),
- m_generic_paletteram_16(*this, "paletteram") { }
+ m_generic_paletteram_16(*this, "paletteram"),
+ m_priority_ram(*this, "priority_ram"),
+ m_scrollram(*this, "scrollram"),
+ m_spriteram(*this, "spriteram"),
+ m_vram(*this, "vram"),
+ m_scroll_x(*this, "scroll_x"),
+ m_scroll_y(*this, "scroll_y") { }
+ required_device<cpu_device> m_maincpu;
+ required_device<cpu_device> m_soundcpu;
+ required_device<okim6295_device> m_oki;
+ required_device<eeprom_serial_93cxx_device> m_eeprom;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
+ required_shared_ptr<UINT16> m_generic_paletteram_16;
required_shared_ptr<UINT16> m_priority_ram;
required_shared_ptr<UINT16> m_scrollram;
required_shared_ptr<UINT16> m_spriteram;
+ required_shared_ptr_array<UINT16, 4> m_vram;
+ required_shared_ptr_array<UINT16, 4> m_scroll_x;
+ required_shared_ptr_array<UINT16, 4> m_scroll_y;
UINT8 m_old;
UINT8 m_aliencha_dip_sel;
UINT16 m_priority;
- required_shared_ptr_array<UINT16, 4> m_vram;
- required_shared_ptr_array<UINT16, 4> m_scroll_x;
- required_shared_ptr_array<UINT16, 4> m_scroll_y;
int m_whitescreen;
lordgun_gun_data m_gun[2];
tilemap_t *m_tilemap[4];
bitmap_ind16 *m_bitmaps[5];
- UINT16 m_lordgun_protection_data;
+ UINT16 m_protection_data;
DECLARE_WRITE16_MEMBER(lordgun_protection_w);
DECLARE_READ16_MEMBER(lordgun_protection_r);
DECLARE_WRITE16_MEMBER(aliencha_protection_w);
@@ -71,26 +80,24 @@ public:
DECLARE_READ8_MEMBER(aliencha_dip_r);
DECLARE_WRITE8_MEMBER(aliencha_dip_w);
DECLARE_WRITE8_MEMBER(lordgun_okibank_w);
+
+ DECLARE_DRIVER_INIT(aliencha);
DECLARE_DRIVER_INIT(lordgun);
+
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 video_start();
+
UINT32 screen_update_lordgun(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 lordgun_vram_w(offs_t offset, UINT16 data, UINT16 mem_mask, int _N_);
void lorddgun_calc_gun_scr(int i);
void lordgun_update_gun(int i);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<okim6295_device> m_oki;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_shared_ptr<UINT16> m_generic_paletteram_16;
};
/*----------- defined in video/lordgun.c -----------*/