summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/bladestl.h
diff options
context:
space:
mode:
author wilbertpol <wilbertpol@users.noreply.github.com>2018-05-20 19:27:20 +0200
committer R. Belmont <rb6502@users.noreply.github.com>2018-05-20 13:27:20 -0400
commit2beba4ce73fad917c7159a39939bace54f76494b (patch)
treee9d33c059bc5045f13d0c1748f0a044650370b8d /src/mame/includes/bladestl.h
parentacf93837ac21b2b0bb003d1649b893200c269812 (diff)
Replace set_led_value and set_lamp_value with output_finders. [Wilbe… (#3592)
* Replace set_led_value and set_lamp_value with output_finders. [Wilbert Pol] * segaufo: keep the 2 bit lamp outputs
Diffstat (limited to 'src/mame/includes/bladestl.h')
-rw-r--r--src/mame/includes/bladestl.h40
1 files changed, 23 insertions, 17 deletions
diff --git a/src/mame/includes/bladestl.h b/src/mame/includes/bladestl.h
index 2dd3ba6c750..10db44d8301 100644
--- a/src/mame/includes/bladestl.h
+++ b/src/mame/includes/bladestl.h
@@ -31,7 +31,28 @@ public:
m_gfxdecode(*this, "gfxdecode"),
m_soundlatch(*this, "soundlatch"),
m_trackball(*this, "TRACKBALL.%u", 0),
- m_rombank(*this, "rombank") { }
+ m_rombank(*this, "rombank"),
+ m_lamp(*this, "lamp%u", 0U)
+ { }
+
+ /* devices */
+ DECLARE_READ8_MEMBER(trackball_r);
+ DECLARE_WRITE8_MEMBER(bladestl_bankswitch_w);
+ DECLARE_WRITE8_MEMBER(bladestl_port_B_w);
+ DECLARE_READ8_MEMBER(bladestl_speech_busy_r);
+ DECLARE_WRITE8_MEMBER(bladestl_speech_ctrl_w);
+ DECLARE_PALETTE_INIT(bladestl);
+ uint32_t screen_update_bladestl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ TIMER_DEVICE_CALLBACK_MEMBER(bladestl_scanline);
+ K007342_CALLBACK_MEMBER(bladestl_tile_callback);
+ K007420_CALLBACK_MEMBER(bladestl_sprite_callback);
+ void bladestl(machine_config &config);
+ void main_map(address_map &map);
+ void sound_map(address_map &map);
+
+protected:
+ virtual void machine_start() override;
+ virtual void machine_reset() override;
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
@@ -54,20 +75,5 @@ public:
/* misc */
int m_last_track[4];
- /* devices */
- DECLARE_READ8_MEMBER(trackball_r);
- DECLARE_WRITE8_MEMBER(bladestl_bankswitch_w);
- DECLARE_WRITE8_MEMBER(bladestl_port_B_w);
- DECLARE_READ8_MEMBER(bladestl_speech_busy_r);
- DECLARE_WRITE8_MEMBER(bladestl_speech_ctrl_w);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- DECLARE_PALETTE_INIT(bladestl);
- uint32_t screen_update_bladestl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(bladestl_scanline);
- K007342_CALLBACK_MEMBER(bladestl_tile_callback);
- K007420_CALLBACK_MEMBER(bladestl_sprite_callback);
- void bladestl(machine_config &config);
- void main_map(address_map &map);
- void sound_map(address_map &map);
+ output_finder<2> m_lamp;
};