summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/tankbatt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/tankbatt.h')
-rw-r--r--src/mame/includes/tankbatt.h54
1 files changed, 31 insertions, 23 deletions
diff --git a/src/mame/includes/tankbatt.h b/src/mame/includes/tankbatt.h
index 772ea805472..c7c9c39646a 100644
--- a/src/mame/includes/tankbatt.h
+++ b/src/mame/includes/tankbatt.h
@@ -4,41 +4,49 @@ class tankbatt_state : public driver_device
public:
tankbatt_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_bulletsram(*this, "bulletsram"),
- m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette") { }
+ m_palette(*this, "palette"),
+ m_bulletsram(*this, "bulletsram"),
+ m_videoram(*this, "videoram") { }
+
+ required_device<cpu_device> m_maincpu;
+ required_device<samples_device> m_samples;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
required_shared_ptr<UINT8> m_bulletsram;
required_shared_ptr<UINT8> m_videoram;
+
int m_nmi_enable;
int m_sound_enable;
-
tilemap_t *m_bg_tilemap;
- DECLARE_WRITE8_MEMBER(tankbatt_led_w);
- DECLARE_READ8_MEMBER(tankbatt_in0_r);
- DECLARE_READ8_MEMBER(tankbatt_in1_r);
- DECLARE_READ8_MEMBER(tankbatt_dsw_r);
- DECLARE_WRITE8_MEMBER(tankbatt_interrupt_enable_w);
- DECLARE_WRITE8_MEMBER(tankbatt_demo_interrupt_enable_w);
- DECLARE_WRITE8_MEMBER(tankbatt_sh_expl_w);
- DECLARE_WRITE8_MEMBER(tankbatt_sh_engine_w);
- DECLARE_WRITE8_MEMBER(tankbatt_sh_fire_w);
- DECLARE_WRITE8_MEMBER(tankbatt_irq_ack_w);
- DECLARE_WRITE8_MEMBER(tankbatt_coin_counter_w);
- DECLARE_WRITE8_MEMBER(tankbatt_coin_lockout_w);
- DECLARE_WRITE8_MEMBER(tankbatt_videoram_w);
+
+ DECLARE_WRITE8_MEMBER(led_w);
+ DECLARE_READ8_MEMBER(in0_r);
+ DECLARE_READ8_MEMBER(in1_r);
+ DECLARE_READ8_MEMBER(dsw_r);
+ DECLARE_WRITE8_MEMBER(interrupt_enable_w);
+ DECLARE_WRITE8_MEMBER(demo_interrupt_enable_w);
+ DECLARE_WRITE8_MEMBER(sh_expl_w);
+ DECLARE_WRITE8_MEMBER(sh_engine_w);
+ DECLARE_WRITE8_MEMBER(sh_fire_w);
+ DECLARE_WRITE8_MEMBER(irq_ack_w);
+ DECLARE_WRITE8_MEMBER(coincounter_w);
+ DECLARE_WRITE8_MEMBER(coinlockout_w);
+ DECLARE_WRITE8_MEMBER(videoram_w);
+
+
+ INTERRUPT_GEN_MEMBER(interrupt);
DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
+
TILE_GET_INFO_MEMBER(get_bg_tile_info);
+
+ virtual void machine_start();
virtual void video_start();
DECLARE_PALETTE_INIT(tankbatt);
- UINT32 screen_update_tankbatt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(tankbatt_interrupt);
+
+ UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
};