diff options
author | 2022-08-06 19:10:30 +0200 | |
---|---|---|
committer | 2022-08-06 19:10:42 +0200 | |
commit | 6fe19f4032dbeb1b79bcedcf83878723a457f8c2 (patch) | |
tree | 0c339e0adabe86d5aee302f1ca88ec464ba031dc /src/devices/cpu/tms1000/tms2100.cpp | |
parent | 1c4c29aff67906829a1e1b48e16cf1a5d1ac16a0 (diff) |
tms1000: add read/write prefix to k/r/o devcb names
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() { |