summaryrefslogtreecommitdiffstats
path: root/src/devices/bus/abckb/abc99.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/abckb/abc99.cpp')
-rw-r--r--src/devices/bus/abckb/abc99.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/devices/bus/abckb/abc99.cpp b/src/devices/bus/abckb/abc99.cpp
index af0132cc724..49d0e9e7dd9 100644
--- a/src/devices/bus/abckb/abc99.cpp
+++ b/src/devices/bus/abckb/abc99.cpp
@@ -478,6 +478,7 @@ abc99_device::abc99_device(const machine_config &mconfig, const char *tag, devic
m_speaker(*this, "speaker"),
m_z14(*this, "Z14"),
m_mouseb(*this, "MOUSEB"),
+ m_led(*this, "led%u", 0U),
m_si(1),
m_si_en(1),
m_so_z2(1),
@@ -498,6 +499,7 @@ abc99_device::abc99_device(const machine_config &mconfig, const char *tag, devic
void abc99_device::device_start()
{
+ m_led.resolve();
// allocate timers
m_serial_timer = timer_alloc(TIMER_SERIAL);
m_serial_timer->adjust(MCS48_ALE_CLOCK(XTAL(6'000'000)/3), 0, MCS48_ALE_CLOCK(XTAL(6'000'000)/3));
@@ -573,14 +575,14 @@ WRITE8_MEMBER( abc99_device::z2_led_w )
{
if (m_led_en) return;
- machine().output().set_led_value(LED_1, BIT(data, 0));
- machine().output().set_led_value(LED_2, BIT(data, 1));
- machine().output().set_led_value(LED_3, BIT(data, 2));
- machine().output().set_led_value(LED_4, BIT(data, 3));
- machine().output().set_led_value(LED_5, BIT(data, 4));
- machine().output().set_led_value(LED_6, BIT(data, 5));
- machine().output().set_led_value(LED_7, BIT(data, 6));
- machine().output().set_led_value(LED_8, BIT(data, 7));
+ m_led[LED_1] = BIT(data, 0);
+ m_led[LED_2] = BIT(data, 1);
+ m_led[LED_3] = BIT(data, 2);
+ m_led[LED_4] = BIT(data, 3);
+ m_led[LED_5] = BIT(data, 4);
+ m_led[LED_6] = BIT(data, 5);
+ m_led[LED_7] = BIT(data, 6);
+ m_led[LED_8] = BIT(data, 7);
}
@@ -616,9 +618,9 @@ WRITE8_MEMBER( abc99_device::z2_p1_w )
m_t1_z5 = BIT(data, 2);
// key LEDs
- machine().output().set_led_value(LED_INS, BIT(data, 3));
- machine().output().set_led_value(LED_ALT, BIT(data, 4));
- machine().output().set_led_value(LED_CAPS_LOCK, BIT(data, 5));
+ m_led[LED_INS] = BIT(data, 3);
+ m_led[LED_ALT] = BIT(data, 4);
+ m_led[LED_CAPS_LOCK] = BIT(data, 5);
// speaker output
m_speaker->level_w(!BIT(data, 6));