diff options
Diffstat (limited to 'src/devices/machine/tms6100.cpp')
-rw-r--r-- | src/devices/machine/tms6100.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/machine/tms6100.cpp b/src/devices/machine/tms6100.cpp index 67eb9d17a14..7242ca1312d 100644 --- a/src/devices/machine/tms6100.cpp +++ b/src/devices/machine/tms6100.cpp @@ -3,7 +3,7 @@ /********************************************************************************************** Texas Instruments TMS6100 Voice Synthesis Memory (VSM) - + References: - TMS 6100 Voice Synthesis Memory Data Manual - TMS 6125 Voice Synthesis Memory Data Manual @@ -147,11 +147,11 @@ WRITE_LINE_MEMBER(tms6100_device::clk_w) UINT8 m = m_m1 << 1 | m_m0; if ((m & ~m_prev_m & 1) || (m & ~m_prev_m & 2)) handle_command(m); - + m_prev_m = m; } } - + m_clk = (state) ? 1 : 0; } @@ -190,7 +190,7 @@ void tms6100_device::handle_command(UINT8 cmd) // or shift(rotate) right m_sa = (m_sa >> 1) | (m_sa << 7 & 0x80); } - + // output to DATA pin(s) if (!m_4bit_mode) { @@ -205,16 +205,16 @@ void tms6100_device::handle_command(UINT8 cmd) else m_data = m_sa & 0xf; } - + // 8 bits in 1-bit mode, otherwise 2 nybbles m_count = (m_count + 1) & (m_4bit_mode ? 1 : 7); - + // TB8 if (m_count == 0) m_address++; // CS bits too } break; - + // LA: load address case M_LA: if (m_prev_cmd == M_TB) @@ -232,7 +232,7 @@ void tms6100_device::handle_command(UINT8 cmd) const UINT8 shift = 4 * (m_count+1); m_address = (m_address & ~(0xf << shift)) | (m_add << shift); } - + m_count = (m_count + 1) & 7; } break; @@ -251,10 +251,10 @@ void tms6100_device::handle_command(UINT8 cmd) m_address = (m_address & ~0x3fff) | (rb & 0x3fff); } break; - + default: break; } - + m_prev_cmd = cmd; } |