diff options
Diffstat (limited to 'src/devices/cpu/tms1000/tms2100.cpp')
-rw-r--r-- | src/devices/cpu/tms1000/tms2100.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/devices/cpu/tms1000/tms2100.cpp b/src/devices/cpu/tms1000/tms2100.cpp index fe1b42290a6..efe561e787e 100644 --- a/src/devices/cpu/tms1000/tms2100.cpp +++ b/src/devices/cpu/tms1000/tms2100.cpp @@ -22,7 +22,11 @@ Extra functions are controlled with the R register (not mapped to pins): - R24: enable interrupts TODO: -- x +- timer interrupt +- external interrupt (INT pin) +- event counter (EC1 pin) +- R0-R3 I/O, TRA opcode +- A/D converter, TADM opcode */ @@ -109,6 +113,14 @@ void tms2100_cpu_device::device_reset() } +// i/o handling +u8 tms2100_cpu_device::read_k_input() +{ + // select K/J port with R16 + return (BIT(m_r, 16) ? m_read_j() : m_read_k()) & 0xf; +} + + // opcode deviations void tms2100_cpu_device::op_tax() { |