JitArm64: Fix lmw + stmw

This commit is contained in:
degasus 2015-09-16 08:09:51 +02:00
parent 955bef226e
commit 3ae466a33c
1 changed files with 4 additions and 4 deletions

View File

@ -579,13 +579,13 @@ void JitArm64::lmw(UGeckoInstruction inst)
u16 remaining = off >> 12; u16 remaining = off >> 12;
if (add) if (add)
{ {
ADD(WA, WA, remaining, true);
ADD(WA, gpr.R(a), off & 0xFFF); ADD(WA, gpr.R(a), off & 0xFFF);
ADD(WA, WA, remaining, true);
} }
else else
{ {
SUB(WA, WA, remaining, true);
SUB(WA, gpr.R(a), off & 0xFFF); SUB(WA, gpr.R(a), off & 0xFFF);
SUB(WA, WA, remaining, true);
} }
} }
} }
@ -667,13 +667,13 @@ void JitArm64::stmw(UGeckoInstruction inst)
u16 remaining = off >> 12; u16 remaining = off >> 12;
if (add) if (add)
{ {
ADD(WA, WA, remaining, true);
ADD(WA, gpr.R(a), off & 0xFFF); ADD(WA, gpr.R(a), off & 0xFFF);
ADD(WA, WA, remaining, true);
} }
else else
{ {
SUB(WA, WA, remaining, true);
SUB(WA, gpr.R(a), off & 0xFFF); SUB(WA, gpr.R(a), off & 0xFFF);
SUB(WA, WA, remaining, true);
} }
} }
} }