summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/atarisy2.cpp
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/drivers/atarisy2.cpp
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/drivers/atarisy2.cpp')
-rw-r--r--src/mame/drivers/atarisy2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/atarisy2.cpp b/src/mame/drivers/atarisy2.cpp
index 9a44eb4852b..d3635e65f8d 100644
--- a/src/mame/drivers/atarisy2.cpp
+++ b/src/mame/drivers/atarisy2.cpp
@@ -199,6 +199,8 @@ MACHINE_START_MEMBER(atarisy2_state,atarisy2)
{
atarigen_state::machine_start();
+ m_led.resolve();
+
save_item(NAME(m_interrupt_enable));
save_item(NAME(m_p2portwr_state));
save_item(NAME(m_p2portrd_state));
@@ -333,8 +335,8 @@ READ8_MEMBER(atarisy2_state::switch_6502_r)
WRITE8_MEMBER(atarisy2_state::switch_6502_w)
{
- output().set_led_value(0, data & 0x04);
- output().set_led_value(1, data & 0x08);
+ m_led[0] = BIT(data, 2);
+ m_led[1] = BIT(data, 3);
if (m_tms5220.found())
{
data = 12 | ((data >> 5) & 1);