summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/skydiver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/skydiver.h')
-rw-r--r--src/mame/includes/skydiver.h52
1 files changed, 29 insertions, 23 deletions
diff --git a/src/mame/includes/skydiver.h b/src/mame/includes/skydiver.h
index d706c078e80..d7a446e32ea 100644
--- a/src/mame/includes/skydiver.h
+++ b/src/mame/includes/skydiver.h
@@ -24,43 +24,49 @@ class skydiver_state : public driver_device
public:
skydiver_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram") ,
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette") { }
+ m_palette(*this, "palette"),
+ m_videoram(*this, "videoram") { }
+
+ required_device<cpu_device> m_maincpu;
+ required_device<discrete_device> m_discrete;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
required_shared_ptr<UINT8> m_videoram;
+
int m_nmion;
tilemap_t *m_bg_tilemap;
int m_width;
- DECLARE_WRITE8_MEMBER(skydiver_nmion_w);
- DECLARE_WRITE8_MEMBER(skydiver_videoram_w);
- DECLARE_READ8_MEMBER(skydiver_wram_r);
- DECLARE_WRITE8_MEMBER(skydiver_wram_w);
- DECLARE_WRITE8_MEMBER(skydiver_width_w);
- DECLARE_WRITE8_MEMBER(skydiver_coin_lockout_w);
- DECLARE_WRITE8_MEMBER(skydiver_start_lamp_1_w);
- DECLARE_WRITE8_MEMBER(skydiver_start_lamp_2_w);
- DECLARE_WRITE8_MEMBER(skydiver_lamp_s_w);
- DECLARE_WRITE8_MEMBER(skydiver_lamp_k_w);
- DECLARE_WRITE8_MEMBER(skydiver_lamp_y_w);
- DECLARE_WRITE8_MEMBER(skydiver_lamp_d_w);
- DECLARE_WRITE8_MEMBER(skydiver_2000_201F_w);
- DECLARE_WRITE8_MEMBER(skydiver_sound_enable_w);
- DECLARE_WRITE8_MEMBER(skydiver_whistle_w);
+ DECLARE_WRITE8_MEMBER(nmion_w);
+ DECLARE_WRITE8_MEMBER(videoram_w);
+ DECLARE_READ8_MEMBER(wram_r);
+ DECLARE_WRITE8_MEMBER(wram_w);
+ DECLARE_WRITE8_MEMBER(width_w);
+ DECLARE_WRITE8_MEMBER(coin_lockout_w);
+ DECLARE_WRITE8_MEMBER(start_lamp_1_w);
+ DECLARE_WRITE8_MEMBER(start_lamp_2_w);
+ DECLARE_WRITE8_MEMBER(lamp_s_w);
+ DECLARE_WRITE8_MEMBER(lamp_k_w);
+ DECLARE_WRITE8_MEMBER(lamp_y_w);
+ DECLARE_WRITE8_MEMBER(lamp_d_w);
+ DECLARE_WRITE8_MEMBER(_2000_201F_w);
+ DECLARE_WRITE8_MEMBER(sound_enable_w);
+ DECLARE_WRITE8_MEMBER(whistle_w);
+
TILE_GET_INFO_MEMBER(get_tile_info);
+
virtual void machine_reset();
virtual void video_start();
DECLARE_PALETTE_INIT(skydiver);
- UINT32 screen_update_skydiver(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(skydiver_interrupt);
+
+ UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
+
+ INTERRUPT_GEN_MEMBER(interrupt);
};
/*----------- defined in audio/skydiver.c -----------*/