From ab3eedcc331559e651fe1ffa7c56167921a7f51f Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sat, 27 Aug 2016 10:33:39 +1200 Subject: [PATCH] While I'm here, stswx should wrap too. --- Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp index 2505a4eafc..0df1c338b5 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp @@ -742,7 +742,7 @@ void Interpreter::stswx(UGeckoInstruction _inst) if (i == 32) { i = 0; - r++; + r = (r + 1) & 0x1f; // wrap } } }