summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/quantum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/quantum.cpp')
-rw-r--r--src/mame/drivers/quantum.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/quantum.cpp b/src/mame/drivers/quantum.cpp
index b47836cbba6..be50f4ef35f 100644
--- a/src/mame/drivers/quantum.cpp
+++ b/src/mame/drivers/quantum.cpp
@@ -66,12 +66,14 @@ public:
quantum_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_avg(*this, "avg")
+ m_avg(*this, "avg"),
+ m_led(*this, "led%u", 0U)
{ }
void quantum(machine_config &config);
protected:
+ virtual void machine_start() override { m_led.resolve(); }
DECLARE_READ16_MEMBER(trackball_r);
DECLARE_WRITE16_MEMBER(led_w);
DECLARE_READ8_MEMBER(input_1_r);
@@ -81,6 +83,7 @@ protected:
private:
required_device<cpu_device> m_maincpu;
required_device<avg_quantum_device> m_avg;
+ output_finder<2> m_led;
};
@@ -130,8 +133,8 @@ WRITE16_MEMBER(quantum_state::led_w)
/* bit 3 = select second trackball for cocktail mode? */
/* bits 4 and 5 are LED controls */
- output().set_led_value(0, data & 0x10);
- output().set_led_value(1, data & 0x20);
+ m_led[0] = BIT(data, 4);
+ m_led[1] = BIT(data, 5);
/* bits 6 and 7 flip screen */
m_avg->set_flip_x (data & 0x40);