summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-01-05 19:32:02 +0100
committerbunnei <bunneidev@gmail.com>2015-01-05 19:32:02 +0100
commitfb0c7492235f1db2ffc0bf45e61628a7ba1a94f1 (patch)
tree74862843978e0d0a9c1aa7f2cc8f2122125a2f99
parentMerge pull request #418 from lioncash/qd (diff)
parentdyncom: Actually set the Q flag for SMLABB/SMLABT/SMLATB/SMLATT (diff)
downloadyuzu-fb0c7492235f1db2ffc0bf45e61628a7ba1a94f1.tar
yuzu-fb0c7492235f1db2ffc0bf45e61628a7ba1a94f1.tar.gz
yuzu-fb0c7492235f1db2ffc0bf45e61628a7ba1a94f1.tar.bz2
yuzu-fb0c7492235f1db2ffc0bf45e61628a7ba1a94f1.tar.lz
yuzu-fb0c7492235f1db2ffc0bf45e61628a7ba1a94f1.tar.xz
yuzu-fb0c7492235f1db2ffc0bf45e61628a7ba1a94f1.tar.zst
yuzu-fb0c7492235f1db2ffc0bf45e61628a7ba1a94f1.zip
-rw-r--r--src/core/arm/dyncom/arm_dyncom_interpreter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
index ffe05cdbc..ed2de115a 100644
--- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
+++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
@@ -5571,7 +5571,8 @@ unsigned InterpreterMainLoop(ARMul_State* state) {
operand2 = (BIT(RS, 31)) ? (BITS(RS, 16, 31) | 0xffff0000) : BITS(RS, 16, 31);
RD = operand1 * operand2 + RN;
- // TODO: FIXME: UPDATE Q FLAGS
+ if (AddOverflow(operand1 * operand2, RN, RD))
+ cpu->Cpsr |= (1 << 27);
}
cpu->Reg[15] += GET_INST_SIZE(cpu);
INC_PC(sizeof(smla_inst));