Implement wsbh

This commit is contained in:
Henrik Rydgard 2012-11-29 14:35:44 +01:00
parent e370a1a8aa
commit 945d9b6762

View File

@ -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;