Opcode decoding: 0xC0 isn't a valid command.

Fix our opcode decoders to handle this appropriately.
This commit is contained in:
magumagu
2014-05-08 15:43:41 -07:00
parent b4e1ac5f08
commit 369c0c4ce2
3 changed files with 6 additions and 6 deletions

View File

@ -201,7 +201,7 @@ void DecodeStandard(u32 bufferSize)
// draw primitives
default:
if (Cmd & 0x80)
if ((Cmd & 0xC0) == 0x80)
{
u8 vatIndex = Cmd & GX_VAT_MASK;
u8 primitiveType = (Cmd & GX_PRIMITIVE_MASK) >> GX_PRIMITIVE_SHIFT;
@ -283,7 +283,7 @@ bool CommandRunnable(u32 iBufferSize)
// draw primitives
default:
if (Cmd & 0x80)
if ((Cmd & 0xC0) == 0x80)
minSize = 3;
break;
}