summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/starcrus.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/starcrus.h')
-rw-r--r--src/mame/includes/starcrus.h45
1 files changed, 27 insertions, 18 deletions
diff --git a/src/mame/includes/starcrus.h b/src/mame/includes/starcrus.h
index 725b6d4355f..219a143aa15 100644
--- a/src/mame/includes/starcrus.h
+++ b/src/mame/includes/starcrus.h
@@ -9,13 +9,38 @@ public:
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette") { }
+ m_palette(*this, "palette"),
+ m_led(*this, "led2")
+ { }
+ void starcrus(machine_config &config);
+
+ DECLARE_WRITE8_MEMBER(s1_x_w);
+ DECLARE_WRITE8_MEMBER(s1_y_w);
+ DECLARE_WRITE8_MEMBER(s2_x_w);
+ DECLARE_WRITE8_MEMBER(s2_y_w);
+ DECLARE_WRITE8_MEMBER(p1_x_w);
+ DECLARE_WRITE8_MEMBER(p1_y_w);
+ DECLARE_WRITE8_MEMBER(p2_x_w);
+ DECLARE_WRITE8_MEMBER(p2_y_w);
+ DECLARE_WRITE8_MEMBER(ship_parm_1_w);
+ DECLARE_WRITE8_MEMBER(ship_parm_2_w);
+ DECLARE_WRITE8_MEMBER(proj_parm_1_w);
+ DECLARE_WRITE8_MEMBER(proj_parm_2_w);
+ DECLARE_READ8_MEMBER(coll_det_r);
+
+protected:
+ virtual void machine_start() override;
+ virtual void video_start() override;
+
+private:
required_device<cpu_device> m_maincpu;
required_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
+ output_finder<> m_led;
+
std::unique_ptr<bitmap_ind16> m_ship1_vid;
std::unique_ptr<bitmap_ind16> m_ship2_vid;
std::unique_ptr<bitmap_ind16> m_proj1_vid;
@@ -49,28 +74,12 @@ public:
int m_launch1_sound_playing;
int m_launch2_sound_playing;
- DECLARE_WRITE8_MEMBER(s1_x_w);
- DECLARE_WRITE8_MEMBER(s1_y_w);
- DECLARE_WRITE8_MEMBER(s2_x_w);
- DECLARE_WRITE8_MEMBER(s2_y_w);
- DECLARE_WRITE8_MEMBER(p1_x_w);
- DECLARE_WRITE8_MEMBER(p1_y_w);
- DECLARE_WRITE8_MEMBER(p2_x_w);
- DECLARE_WRITE8_MEMBER(p2_y_w);
- DECLARE_WRITE8_MEMBER(ship_parm_1_w);
- DECLARE_WRITE8_MEMBER(ship_parm_2_w);
- DECLARE_WRITE8_MEMBER(proj_parm_1_w);
- DECLARE_WRITE8_MEMBER(proj_parm_2_w);
- DECLARE_READ8_MEMBER(coll_det_r);
-
- virtual void video_start() override;
-
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
int collision_check_s1s2();
int collision_check_p1p2();
int collision_check_s1p1p2();
int collision_check_s2p1p2();
- void starcrus(machine_config &config);
+
void starcrus_io_map(address_map &map);
void starcrus_map(address_map &map);
};