From 945d9b676218ffc48205ce3eed6768cb03928d20 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 29 Nov 2012 14:35:44 +0100 Subject: [PATCH] Implement wsbh --- Core/MIPS/MIPSInt.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/MIPS/MIPSInt.cpp b/Core/MIPS/MIPSInt.cpp index b0437faf95..e97746cd58 100644 --- a/Core/MIPS/MIPSInt.cpp +++ b/Core/MIPS/MIPSInt.cpp @@ -721,6 +721,9 @@ namespace MIPSInt switch (op & 0x3ff) { + case 0xA0: //wsbh + R(rd) = ((R(rt) & 0xFF00FF00) >> 8) | ((R(rt) & 0x00FF00FF) << 8); + break; case 0xE0: //wsbw R(rd) = _byteswap_ulong(R(rt)); break;