summaryrefslogtreecommitdiffstats
path: root/src/core/arm
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-07-17 04:08:07 +0200
committerLioncash <mathew1800@gmail.com>2015-07-17 04:08:12 +0200
commit23dbbb786aad2d7e1d8b190296288900dde55f2d (patch)
tree408be8e40c7edacb9447d59c743e0ad99108d096 /src/core/arm
parentRemove webchat link from readme (diff)
downloadyuzu-23dbbb786aad2d7e1d8b190296288900dde55f2d.tar
yuzu-23dbbb786aad2d7e1d8b190296288900dde55f2d.tar.gz
yuzu-23dbbb786aad2d7e1d8b190296288900dde55f2d.tar.bz2
yuzu-23dbbb786aad2d7e1d8b190296288900dde55f2d.tar.lz
yuzu-23dbbb786aad2d7e1d8b190296288900dde55f2d.tar.xz
yuzu-23dbbb786aad2d7e1d8b190296288900dde55f2d.tar.zst
yuzu-23dbbb786aad2d7e1d8b190296288900dde55f2d.zip
Diffstat (limited to 'src/core/arm')
-rw-r--r--src/core/arm/dyncom/arm_dyncom_interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
index b00eb49a9..34cfb8cb2 100644
--- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
+++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
@@ -5695,7 +5695,7 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) {
const s16 operand2 = (high) ? ((rm_val >> 16) & 0xFFFF) : (rm_val & 0xFFFF);
const s64 result = (s64)(s32)rn_val * (s64)(s32)operand2 + ((s64)(s32)ra_val << 16);
- RD = (result & (0xFFFFFFFFFFFFFFFFLL >> 15)) >> 16;
+ RD = BITS(result, 16, 47);
if ((result >> 16) != (s32)RD)
cpu->Cpsr |= (1 << 27);