diff options
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 |
commit | 2beba4ce73fad917c7159a39939bace54f76494b (patch) | |
tree | e9d33c059bc5045f13d0c1748f0a044650370b8d /src/mame/drivers/djmain.cpp | |
parent | acf93837ac21b2b0bb003d1649b893200c269812 (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/djmain.cpp')
-rw-r--r-- | src/mame/drivers/djmain.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mame/drivers/djmain.cpp b/src/mame/drivers/djmain.cpp index e1e781bcf3d..7ffc70abe05 100644 --- a/src/mame/drivers/djmain.cpp +++ b/src/mame/drivers/djmain.cpp @@ -301,9 +301,9 @@ WRITE32_MEMBER(djmain_state::light_ctrl_2_w) { output().set_value("left-ssr", !!(data & 0x08000000)); // SSR output().set_value("right-ssr", !!(data & 0x08000000)); // SSR - output().set_led_value(0, data & 0x00010000); // 1P START - output().set_led_value(1, data & 0x00020000); // 2P START - output().set_led_value(2, data & 0x00040000); // EFFECT + m_led[0] = BIT(data, 16); // 1P START + m_led[1] = BIT(data, 17); // 2P START + m_led[2] = BIT(data, 18); // EFFECT } } @@ -1351,6 +1351,8 @@ void djmain_state::machine_start() if (m_ata_user_password != nullptr) hdd->set_user_password(m_ata_user_password); + m_led.resolve(); + save_item(NAME(m_sndram_bank)); save_item(NAME(m_pending_vb_int)); save_item(NAME(m_v_ctrl)); @@ -1364,9 +1366,9 @@ void djmain_state::machine_reset() m_sndram_bank = 0; /* reset LEDs */ - output().set_led_value(0, 1); - output().set_led_value(1, 1); - output().set_led_value(2, 1); + m_led[0] = 1; + m_led[1] = 1; + m_led[2] = 1; } |