From 42f5ceb3dbfd4e812a3086f58006b3c197d3c546 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Sat, 21 Dec 2019 20:25:56 +0100 Subject: model1: Paranoia on atan [O. Galibert] --- src/mame/machine/model1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- cgit v1.2.3