It's a simple multply test that works perfectly on the ps2, but on the psp (using the c++ compiler not c) it fails, saying mult $5,$5,$3 is an illegal operand.
Code: Select all
void AddTest()
{
int num1=5;
int num2=10;
int out=0;
asm __volatile__ ("\n\
mult %0,%1,%2\n\ // <<<<
":"=r"(out):"r"(num1),"r"(num2));
printf("Result:%d \n",out);
}