summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/pc_kbd/pcat84.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/pc_kbd/pcat84.cpp')
-rw-r--r--src/devices/bus/pc_kbd/pcat84.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/devices/bus/pc_kbd/pcat84.cpp b/src/devices/bus/pc_kbd/pcat84.cpp
index 77ee7fd4f27..0b78c126d86 100644
--- a/src/devices/bus/pc_kbd/pcat84.cpp
+++ b/src/devices/bus/pc_kbd/pcat84.cpp
@@ -343,6 +343,7 @@ ibm_pc_at_84_keyboard_device::ibm_pc_at_84_keyboard_device(const machine_config
m_dr(*this, "DR%02u", 0),
m_kbdida(*this, "KBDIDA"),
m_kbdidb(*this, "KBDIDB"),
+ m_led(*this, "led%u", 0U),
m_db(0),
m_cnt(0),
m_sense(0),
@@ -369,6 +370,8 @@ void ibm_pc_at_84_keyboard_device::device_start()
{
set_pc_kbdc_device();
+ m_led.resolve();
+
// state saving
save_item(NAME(m_db));
save_item(NAME(m_cnt));
@@ -526,9 +529,9 @@ WRITE8_MEMBER( ibm_pc_at_84_keyboard_device::p2_w )
*/
- machine().output().set_led_value(LED_SCROLL, BIT(data, 0));
- machine().output().set_led_value(LED_NUM, BIT(data, 1));
- machine().output().set_led_value(LED_CAPS, BIT(data, 2));
+ m_led[LED_SCROLL] = BIT(data, 0);
+ m_led[LED_NUM] = BIT(data, 1);
+ m_led[LED_CAPS] = BIT(data, 2);
m_pc_kbdc->data_write_from_kb(!BIT(data, 7));
m_pc_kbdc->clock_write_from_kb(!BIT(data, 6));