summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/calomega.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/calomega.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/calomega.h')
-rw-r--r--src/mame/includes/calomega.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mame/includes/calomega.h b/src/mame/includes/calomega.h
index 76b22fc8536..93241317ecb 100644
--- a/src/mame/includes/calomega.h
+++ b/src/mame/includes/calomega.h
@@ -21,9 +21,9 @@ public:
m_in0_2(*this, "IN0-2"),
m_in0_3(*this, "IN0-3"),
m_frq(*this, "FRQ"),
- m_sw2(*this, "SW2")
- {
- }
+ m_sw2(*this, "SW2"),
+ m_lamp(*this, "lamp%u", 0U)
+ { }
DECLARE_WRITE8_MEMBER(calomega_videoram_w);
DECLARE_WRITE8_MEMBER(calomega_colorram_w);
@@ -63,6 +63,7 @@ public:
void sys905_map(address_map &map);
void sys906_map(address_map &map);
protected:
+ virtual void machine_start() override { m_lamp.resolve(); }
virtual void video_start() override;
private:
@@ -82,6 +83,7 @@ private:
optional_ioport m_in0_3;
optional_ioport m_frq;
optional_ioport m_sw2;
+ output_finder<10> m_lamp;
uint8_t m_tx_line;
int m_s903_mux_data;