| View previous topic :: View next topic |
| Author |
Message |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
Posted: Mon Aug 18, 2008 9:11 pm Post subject: help for inline asm |
|
|
int test(int couleur)
{
int c;
__asm__ (
".set push\n"
".set noreorder\n"
"lv.s s000,%1\n"
"mfv %0, s000\n"
".set pop\n"
: "=&r"(c)
: "m"(couleur)
);
return (c);
}
this function just return the param couleur as the function result ok
but in my myps assembler documentation i don't find any trace of lv.s, mvfv etc...
where can i find documentation about inline assembler |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Mon Aug 18, 2008 9:45 pm Post subject: Re: help for inline asm |
|
|
| sauron_le_noir wrote: | int test(int couleur)
{
int c;
__asm__ (
".set push\n"
".set noreorder\n"
"lv.s s000,%1\n"
"mfv %0, s000\n"
".set pop\n"
: "=&r"(c)
: "m"(couleur)
);
return (c);
}
this function just return the param couleur as the function result ok
but in my myps assembler documentation i don't find any trace of lv.s, mvfv etc...
where can i find documentation about inline assembler |
Because those ops are not standard mips, but special commands for the PSP-custom VFPU coprocessor.
There is no official documentation on that part. The only documentation for it is here:
http://forums.ps2dev.org/viewtopic.php?t=6929 _________________ <Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
Posted: Tue Aug 19, 2008 6:20 am Post subject: |
|
|
raphael you again you are omnipresent on the psp scene (joke)
thx for the link |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
|
| Back to top |
|
 |
|