Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 10, 2012, 01:18:28 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Check out the Code Section!
Home Help Search Shop Login Register
Digg This!
Pages: [1]
Print
Author Topic: Documentation about inline psp assembler  (Read 5975 times)
sauron_le_noir
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4
471.42 points

View Inventory
Send Money to sauron_le_noir

View Profile
« on: August 18, 2008, 03:28:41 AM »

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 take a param and return the same param ok
but what is lv.s, mfv etc ... i can find this instruction in my mips asm documentation
what are the impact of the noreorder .
Does somebody have documentation about inline programming for the psp?
Logged


Raphael
Global Moderator
Hero Member
*

Karma: +230/-10
Offline Offline

Posts: 1431
193700.11 points

View Inventory
Send Money to Raphael


View Profile WWW
« Reply #1 on: August 18, 2008, 03:51:13 AM »

As already stated over at ps2dev.org:
http://forums.ps2dev.org/viewtopic.php?t=6929
Logged

Don't push the river, it flows.
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
http://www.homebrew-illuminati.co.uk - serious homebrew development for all platforms
Alexander Berl
"A good mod is a combination playground monitor, priest, big brother/sister, psychiatrist, professor and more."
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.109 seconds with 25 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com