[RSP] installed op-code strings matrix to COP2::C2
This commit is contained in:
parent
4b1ff1983f
commit
6d215d4846
|
@ -1054,186 +1054,38 @@ char * RSPCop2Name ( DWORD OpCode, DWORD PC )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (command.funct)
|
if (strcmp(mnemonics_vector[command.funct], unused_op) == 0)
|
||||||
{
|
{
|
||||||
case RSP_VECTOR_VMULF:
|
sprintf(CommandName, "RSP: Unknown\t%02X %02X %02X %02X",
|
||||||
sprintf(CommandName,"VMULF\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
command.Ascii[3],
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
command.Ascii[2],
|
||||||
break;
|
command.Ascii[1],
|
||||||
case RSP_VECTOR_VMULU:
|
command.Ascii[0]
|
||||||
sprintf(CommandName,"VMULU\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
);
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
}
|
||||||
break;
|
else if (command.funct >= RSP_VECTOR_VRCP && command.funct < RSP_VECTOR_VNOOP)
|
||||||
case RSP_VECTOR_VRNDP:
|
{ /* RSP division -- VRCP[L,H], VRSQ[L,H], and VMOV */
|
||||||
sprintf(CommandName,"VRNDP\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
sprintf(CommandName, "%s\t$v%d[%d], $v%d%s",
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
mnemonics_vector[command.funct],
|
||||||
break;
|
command.sa,
|
||||||
case RSP_VECTOR_VMULQ:
|
command.rd & 0x7,
|
||||||
sprintf(CommandName,"VMULQ\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
command.rt,
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
ElementSpecifier(command.rs & 0xF)
|
||||||
break;
|
);
|
||||||
case RSP_VECTOR_VMUDL:
|
}
|
||||||
sprintf(CommandName,"VMUDL\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
else if (command.funct == RSP_VECTOR_VNOOP)
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
{
|
||||||
break;
|
strcpy(CommandName, mnemonics_vector[RSP_VECTOR_VNOOP]);
|
||||||
case RSP_VECTOR_VMUDM:
|
}
|
||||||
sprintf(CommandName,"VMUDM\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
else
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
{
|
||||||
break;
|
sprintf(CommandName, "%s\t$v%d, $v%d, $v%d%s",
|
||||||
case RSP_VECTOR_VMUDN:
|
mnemonics_vector[command.funct],
|
||||||
sprintf(CommandName,"VMUDN\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
command.sa,
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
command.rd,
|
||||||
break;
|
command.rt,
|
||||||
case RSP_VECTOR_VMUDH:
|
ElementSpecifier(command.rs & 0xF)
|
||||||
sprintf(CommandName,"VMUDH\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
);
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VMACF:
|
|
||||||
sprintf(CommandName,"VMACF\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VMACU:
|
|
||||||
sprintf(CommandName,"VMACU\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VRNDN:
|
|
||||||
sprintf(CommandName,"VRNDN\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VMACQ:
|
|
||||||
sprintf(CommandName,"VMACQ\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VMADL:
|
|
||||||
sprintf(CommandName,"VMADL\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VMADM:
|
|
||||||
sprintf(CommandName,"VMADM\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VMADN:
|
|
||||||
sprintf(CommandName,"VMADN\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VMADH:
|
|
||||||
sprintf(CommandName,"VMADH\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VADD:
|
|
||||||
sprintf(CommandName,"VADD\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VSUB:
|
|
||||||
sprintf(CommandName,"VSUB\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VABS:
|
|
||||||
sprintf(CommandName,"VABS\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VADDC:
|
|
||||||
sprintf(CommandName,"VADDC\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VSUBC:
|
|
||||||
sprintf(CommandName,"VSUBC\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VSAW:
|
|
||||||
sprintf(CommandName,"VSAW\t$v%d [%d], $v%d, $v%d ",command.sa, (command.rs & 0xF),
|
|
||||||
command.rd, command.rt);
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VLT:
|
|
||||||
sprintf(CommandName,"VLT\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VEQ:
|
|
||||||
sprintf(CommandName,"VEQ\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VNE:
|
|
||||||
sprintf(CommandName,"VNE\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VGE:
|
|
||||||
sprintf(CommandName,"VGE\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VCL:
|
|
||||||
sprintf(CommandName,"VCL\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VCH:
|
|
||||||
sprintf(CommandName,"VCH\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VCR:
|
|
||||||
sprintf(CommandName,"VCR\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VMRG:
|
|
||||||
sprintf(CommandName,"VMRG\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VAND:
|
|
||||||
sprintf(CommandName,"VAND\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VNAND:
|
|
||||||
sprintf(CommandName,"VNAND\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VOR:
|
|
||||||
sprintf(CommandName,"VOR\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VNOR:
|
|
||||||
sprintf(CommandName,"VNOR\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VXOR:
|
|
||||||
sprintf(CommandName,"VXOR\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VNXOR:
|
|
||||||
sprintf(CommandName,"VNXOR\t$v%d, $v%d, $v%d%s",command.sa, command.rd,
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VRCP:
|
|
||||||
sprintf(CommandName,"VRCP\t$v%d [%d], $v%d%s",command.sa, (command.rd & 0x7),
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VRCPL:
|
|
||||||
sprintf(CommandName,"VRCPL\t$v%d [%d], $v%d%s",command.sa, (command.rd & 0x7),
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VRCPH:
|
|
||||||
sprintf(CommandName,"VRCPH\t$v%d [%d], $v%d%s",command.sa, (command.rd & 0x7),
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VMOV:
|
|
||||||
sprintf(CommandName,"VMOV\t$v%d [%d], $v%d%s",command.sa, (command.rd & 0x7),
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VRSQ:
|
|
||||||
sprintf(CommandName,"VRSQ\t$v%d [%d], $v%d%s",command.sa, (command.rd & 0x7),
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VRSQL:
|
|
||||||
sprintf(CommandName,"VRSQL\t$v%d [%d], $v%d%s",command.sa, (command.rd & 0x7),
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VRSQH:
|
|
||||||
sprintf(CommandName,"VRSQH\t$v%d [%d], $v%d%s",command.sa, (command.rd & 0x7),
|
|
||||||
command.rt, ElementSpecifier(command.rs & 0xF));
|
|
||||||
break;
|
|
||||||
case RSP_VECTOR_VNOOP:
|
|
||||||
sprintf(CommandName,"VNOOP");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
sprintf(CommandName,"RSP: Unknown\t%02X %02X %02X %02X",
|
|
||||||
command.Ascii[3],command.Ascii[2],command.Ascii[1],command.Ascii[0]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return CommandName;
|
return CommandName;
|
||||||
|
|
Loading…
Reference in New Issue