summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2019-04-04 18:53:11 +0200
committer hap <happppp@users.noreply.github.com>2019-04-04 18:53:11 +0200
commit125ccf3378b04d4a525013436b8f7ae1fd9bbc9e (patch)
tree8bb4d948d08f4616083d323f3502135c0df11726
parentd9d9aefdf103684021dce9ed5bb85b3ae64d96cf (diff)
f3853: f3856 bugfix (nw) (note: device not used anywhere in mame yet, doesn't affect anything)
-rw-r--r--src/devices/machine/f3853.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/f3853.cpp b/src/devices/machine/f3853.cpp
index 26b06b858db..29be4c38823 100644
--- a/src/devices/machine/f3853.cpp
+++ b/src/devices/machine/f3853.cpp
@@ -359,8 +359,8 @@ WRITE8_MEMBER(f3856_device::write)
case 2:
{
// timer prescaler
- static const u8 prescaler[8] = { 32, 128, 8, 2 };
- m_prescaler = prescaler[data >> 5 & 7];
+ static const u8 prescaler[4] = { 32, 128, 8, 2 };
+ m_prescaler = prescaler[data >> 2 & 3];
// start/stop timer
bool prev = m_timer_start;