From 0a55a9e85bedf0b58dd5580b503ea648183ba203 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 6 Jul 2016 19:38:17 +1000 Subject: [PATCH] fix MULScc (nw) --- src/devices/cpu/sparc/mb86901.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/sparc/mb86901.cpp b/src/devices/cpu/sparc/mb86901.cpp index f575af6ebec..7e045718924 100644 --- a/src/devices/cpu/sparc/mb86901.cpp +++ b/src/devices/cpu/sparc/mb86901.cpp @@ -1008,7 +1008,7 @@ void mb86901_device::execute_mulscc(UINT32 op) */ UINT32 operand1 = (ICC_N != ICC_V ? 0x80000000 : 0) | (RS1REG >> 1); - UINT32 operand2 = (Y & 1) ? 0 : (USEIMM ? SIMM13 : RS2REG); + UINT32 operand2 = (Y & 1) ? (USEIMM ? SIMM13 : RS2REG) : 0; UINT32 result = operand1 + operand2; Y = ((RS1REG & 1) ? 0x80000000 : 0) | (Y >> 1);