diff options
Diffstat (limited to 'src/mame/drivers/trs80m2.cpp')
-rw-r--r-- | src/mame/drivers/trs80m2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/trs80m2.cpp b/src/mame/drivers/trs80m2.cpp index 76a95ab21ab..177b235dfab 100644 --- a/src/mame/drivers/trs80m2.cpp +++ b/src/mame/drivers/trs80m2.cpp @@ -776,8 +776,8 @@ MACHINE_CONFIG_START(trs80m2_state::trs80m2) TRS80M2_KEYBOARD(config, m_kb, 0); m_kb->clock_wr_callback().set(FUNC(trs80m2_state::kb_clock_w)); - MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0) - MCFG_GENERIC_KEYBOARD_CB(PUT(trs80m2_state, kbd_w)) + generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, KEYBOARD_TAG, 0)); + keyboard.set_keyboard_callback(FUNC(trs80m2_state::kbd_w)); // internal RAM RAM(config, RAM_TAG).set_default_size("64K").set_extra_options("32K,96K,128K,160K,192K,224K,256K,288K,320K,352K,384K,416K,448K,480K,512K"); @@ -868,8 +868,8 @@ MACHINE_CONFIG_START(trs80m16_state::trs80m16) TRS80M2_KEYBOARD(config, m_kb, 0); m_kb->clock_wr_callback().set(FUNC(trs80m2_state::kb_clock_w)); - MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0) - MCFG_GENERIC_KEYBOARD_CB(PUT(trs80m2_state, kbd_w)) + generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, KEYBOARD_TAG, 0)); + keyboard.set_keyboard_callback(FUNC(trs80m2_state::kbd_w)); // internal RAM RAM(config, RAM_TAG).set_default_size("256K").set_extra_options("512K,768K,1M"); |