summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/msx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/msx.cpp')
-rw-r--r--src/mame/machine/msx.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mame/machine/msx.cpp b/src/mame/machine/msx.cpp
index 28daab967be..4f07d97e20d 100644
--- a/src/mame/machine/msx.cpp
+++ b/src/mame/machine/msx.cpp
@@ -58,6 +58,7 @@ void msx_state::machine_reset()
void msx_state::machine_start()
{
+ m_led.resolve();
m_port_c_old = 0xff;
for (device_t &device : device_iterator(*this))
@@ -295,7 +296,7 @@ WRITE8_MEMBER(msx_state::msx_psg_port_b_w)
{
/* Arabic or kana mode led */
if ( (data ^ m_psg_b) & 0x80)
- output().set_led_value(2, !(data & 0x80) );
+ m_led[2] = BIT(~data, 7);
if ( (m_psg_b ^ data) & 0x10)
{
@@ -349,7 +350,7 @@ WRITE8_MEMBER( msx_state::msx_ppi_port_c_w )
/* caps lock */
if ( BIT(m_port_c_old ^ data, 6) )
- output().set_led_value(1, !BIT(data, 6) );
+ m_led[1] = BIT(~data, 6);
/* key click */
if ( BIT(m_port_c_old ^ data, 7) )