summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/tms9901.cpp
diff options
context:
space:
mode:
author ajrhacker <ajrhacker@users.noreply.github.com>2019-03-06 17:41:43 -0500
committer GitHub <noreply@github.com>2019-03-06 17:41:43 -0500
commiteea8a69fbc583cb032417e0a3491b1179afea2f1 (patch)
tree1a345fd8b07af733931a774fffbeebcf961eeed3 /src/devices/machine/tms9901.cpp
parent31762d7e186d3187540d9cea3c9ff4c4edf26d74 (diff)
parent5abdcd81a4254d3e9bd9d0bd63c86e29a46e2f12 (diff)
Merge pull request #4480 from ajrhacker/crushift
tms9900, tms9980a, tms9995: CRU addressing change
Diffstat (limited to 'src/devices/machine/tms9901.cpp')
-rw-r--r--src/devices/machine/tms9901.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/tms9901.cpp b/src/devices/machine/tms9901.cpp
index af01c6ac7fe..aadfec82f20 100644
--- a/src/devices/machine/tms9901.cpp
+++ b/src/devices/machine/tms9901.cpp
@@ -279,9 +279,9 @@ READ8_MEMBER( tms9901_device::read )
{
int answer = 0;
- offset &= 0x003;
+ offset &= 0x01f;
- switch (offset)
+ switch (offset >> 3)
{
case 0:
if (m_clock_mode)
@@ -356,7 +356,7 @@ READ8_MEMBER( tms9901_device::read )
break;
}
- return answer;
+ return BIT(answer, offset & 7);
}
/*