[RSP] installed op-code strings matrix to COP2

This commit is contained in:
unknown 2015-06-23 15:07:28 -04:00
parent 4b1ff1983f
commit 61ebf68196
1 changed files with 24 additions and 20 deletions

View File

@ -1029,27 +1029,31 @@ char * RSPCop2Name ( DWORD OpCode, DWORD PC )
if ( ( command.rs & 0x10 ) == 0 ) if ( ( command.rs & 0x10 ) == 0 )
{ {
switch (command.rs) if (strcmp(mnemonics_cop2[command.rs], unused_op) == 0)
{ {
case RSP_COP2_MF: sprintf(CommandName, "RSP: Unknown\t%02X %02X %02X %02X",
sprintf(CommandName,"MFC2\t%s, $v%d [%d]",GPR_Name(command.rt), command.Ascii[3],
command.rd, command.sa >> 1); command.Ascii[2],
break; command.Ascii[1],
case RSP_COP2_CF: command.Ascii[0]
sprintf(CommandName,"CFC2\t%s, %d",GPR_Name(command.rt), );
command.rd % 4); }
break; else if (command.rs & 002) /* CFC2 or CTC2 */
case RSP_COP2_MT: {
sprintf(CommandName,"MTC2\t%s, $v%d [%d]",GPR_Name(command.rt), sprintf(CommandName, "%s\t%s, %d",
command.rd, command.sa >> 1); mnemonics_cop2[command.rs],
break; GPR_Name(command.rt),
case RSP_COP2_CT: command.rd % 4
sprintf(CommandName,"CTC2\t%s, %d",GPR_Name(command.rt), );
command.rd % 4); }
break; else
default: {
sprintf(CommandName,"RSP: Unknown\t%02X %02X %02X %02X", sprintf(CommandName, "%s\t%s, $v%d[%d]",
command.Ascii[3],command.Ascii[2],command.Ascii[1],command.Ascii[0]); mnemonics_cop2[command.rs],
GPR_Name(command.rt),
command.rd,
command.sa >> 1
);
} }
} }
else else