summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-27 08:12:00 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-27 08:12:00 +0100
commitb1d6f6d63f8294a3f62d7db6f9eea07da1d93664 (patch)
tree10258b6f255e00e7eec2ec30112d6de07015c475 /src/devices/machine
parent9425c141de76ef9ee178af80731110e228fa89bb (diff)
Cleanups and version bumpmame0170
Diffstat (limited to 'src/devices/machine')
-rw-r--r--src/devices/machine/tms6100.cpp20
-rw-r--r--src/devices/machine/tms6100.h6
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