diff options
Diffstat (limited to 'src/devices/machine')
| -rw-r--r-- | src/devices/machine/tms6100.cpp | 20 | ||||
| -rw-r--r-- | src/devices/machine/tms6100.h | 6 |
2 files changed, 13 insertions, 13 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; } diff --git a/src/devices/machine/tms6100.h b/src/devices/machine/tms6100.h index cd802bab7d2..ae295dec4b2 100644 --- a/src/devices/machine/tms6100.h +++ b/src/devices/machine/tms6100.h @@ -56,7 +56,7 @@ DATA/ADD8 | 6 11 | CS NC | 6 11 | /CS NC | 7 10 | M1 NC | 7 10 | M1 M0 | 8 9 | VSS M0 | 8 9 | VSS - +---------+ +---------+ + +---------+ +---------+ Mitsubishi M58819S EPROM Interface: @@ -112,14 +112,14 @@ public: protected: // device-level overrides virtual void device_start() override; - + void handle_command(UINT8 cmd); // internal state required_region_ptr<UINT8> m_rom; bool m_reverse_bits; bool m_4bit_mode; - + UINT32 m_rommask; UINT32 m_address; // internal address + chipselect UINT8 m_sa; // romdata shift register |
