From 524f56eda7ca11e0e226309ec75777ee06af2104 Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 5 Sep 2022 17:42:15 +0930 Subject: [PATCH] Core: fix srav in the interpter --- Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp b/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp index eb436f5a0..0530623ac 100644 --- a/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp +++ b/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp @@ -1329,7 +1329,7 @@ void R4300iOp::SPECIAL_SRLV() void R4300iOp::SPECIAL_SRAV() { - _GPR[m_Opcode.rd].DW = (_GPR[m_Opcode.rt].W[0] >> (_GPR[m_Opcode.rs].UW[0] & 0x1F)); + _GPR[m_Opcode.rd].DW = (int32_t)(_GPR[m_Opcode.rt].DW >> (_GPR[m_Opcode.rs].UW[0] & 0x1F)); } void R4300iOp::SPECIAL_JR()