From aa241e61a0f58368bad3e40bc118672bea82f1de Mon Sep 17 00:00:00 2001 From: zilmar Date: Sat, 1 Oct 2016 18:40:12 +1000 Subject: [PATCH] [Android] fix CArmRecompilerOps::JAL --- .../N64System/Recompiler/Arm/ArmRecompilerOps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Project64-core/N64System/Recompiler/Arm/ArmRecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/Arm/ArmRecompilerOps.cpp index e28d233f0..e8751bae3 100644 --- a/Source/Project64-core/N64System/Recompiler/Arm/ArmRecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/Arm/ArmRecompilerOps.cpp @@ -1718,8 +1718,8 @@ void CArmRecompilerOps::JAL() LoadArmRegPointerToArmReg(Arm_R1, Arm_R0, 0); MoveConstToArmReg(Arm_R2, 0xF0000000); MoveConstToArmReg(Arm_R3, (uint32_t)(m_Opcode.target << 2)); - AndArmRegToArmReg(Arm_R2, Arm_R1); - AddArmRegToArmReg(Arm_R3, Arm_R1, Arm_R1); + AndArmRegToArmReg(Arm_R1, Arm_R2); + AddArmRegToArmReg(Arm_R1, Arm_R3, Arm_R1); StoreArmRegToArmRegPointer(Arm_R1, Arm_R0, 0); uint32_t TargetPC = (m_CompilePC & 0xF0000000) + (m_Opcode.target << 2);