summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h8/gt913.cpp
diff options
context:
space:
mode:
author Devin Acker <d@revenant1.net>2021-10-27 04:21:46 -0400
committer GitHub <noreply@github.com>2021-10-27 10:21:46 +0200
commit935d28a67573f4cd1333639927f19798ce953f1e (patch)
tree6fccc4072e472f8caf6d062779d417b5eb820da1 /src/devices/cpu/h8/gt913.cpp
parent163659b50aabc57aaeeb55e35e88d85523cdbc4c (diff)
new NOT_WORKING machine (Casio CTK-2100) (#8757)
* ctk2100: preliminary work * ctk2100: possible keyboard hookup * ctk2100: hook up rudimentary timers * ctk2100: add ports and hook up the LCD * ctk2100: timer tweaks, input tweaks * ctk2100: fix I/O port reads (stops constant LCD resets) * gt913: increase key polling rate (fixes ctk2100 test mode) * ctk2100: add ADCs, clean up and comment some other stuff * lpc210x: add the PL190 VIC here too while i'm at it * vic_pl192: fix clang build * unidasm: add gt913
Diffstat (limited to 'src/devices/cpu/h8/gt913.cpp')
-rw-r--r--src/devices/cpu/h8/gt913.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/cpu/h8/gt913.cpp b/src/devices/cpu/h8/gt913.cpp
index 5f5e8ff34cb..bc8e11f5dc5 100644
--- a/src/devices/cpu/h8/gt913.cpp
+++ b/src/devices/cpu/h8/gt913.cpp
@@ -89,7 +89,8 @@ void gt913_device::device_add_mconfig(machine_config &config)
GT913_INTC(config, "intc");
GT913_SOUND_HLE(config, m_sound, 0);
- GT913_KBD_HLE(config, m_kbd, "intc", 5);
+ GT913_KBD_HLE(config, m_kbd, 0);
+ m_kbd->irq_cb().set([this](int val) { if (val) m_intc->internal_interrupt(5); });
GT913_IO_HLE(config, m_io_hle, "intc", 6, 7);
H8_SCI(config, m_sci, "intc", 8, 9, 10, 0);