summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2019-12-21 20:25:56 +0100
committer Olivier Galibert <galibert@pobox.com>2019-12-21 20:26:32 +0100
commit5790f3da11809f1c94272fc636a2a17c88d33d2c (patch)
treefe00e36536478cb762e7a59e076d9caffc805224
parentee0857281766578516c8cb027da47674931630a9 (diff)
model1: Paranoia on atan [O. Galibert]
-rw-r--r--src/mame/machine/model1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/model1.cpp b/src/mame/machine/model1.cpp
index bbb63eb7314..123b46c97a7 100644
--- a/src/mame/machine/model1.cpp
+++ b/src/mame/machine/model1.cpp
@@ -231,7 +231,7 @@ WRITE32_MEMBER(model1_state::copro_atan_w)
READ32_MEMBER(model1_state::copro_atan_r)
{
- u32 idx = m_copro_atan_base[3];
+ u32 idx = m_copro_atan_base[3] & 0xffff;
if(idx & 0xc000)
idx = 0x3fff;
u32 result = m_copro_tables[idx | 0x4000];