summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sh/sh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/sh/sh.cpp')
-rw-r--r--src/devices/cpu/sh/sh.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/sh/sh.cpp b/src/devices/cpu/sh/sh.cpp
index 65b93057d00..f6478f289e4 100644
--- a/src/devices/cpu/sh/sh.cpp
+++ b/src/devices/cpu/sh/sh.cpp
@@ -911,10 +911,10 @@ void sh_common_execution::MAC_L(uint32_t m, uint32_t n)
/* MAC.W @Rm+,@Rn+ */
void sh_common_execution::MAC_W(uint32_t m, uint32_t n)
{
- int32_t tempn = (int32_t)read_word(m_sh2_state->r[n]);
+ int32_t tempn = (int32_t)(int16_t)read_word(m_sh2_state->r[n]);
m_sh2_state->r[n] += 2;
- int32_t tempm = (int32_t)read_word(m_sh2_state->r[m]);
+ int32_t tempm = (int32_t)(int16_t)read_word(m_sh2_state->r[m]);
m_sh2_state->r[m] += 2;
uint32_t templ = m_sh2_state->macl;