forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can we know the meaning of parameter of psp API?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
cp25stack



Joined: 16 Dec 2006
Posts: 11

PostPosted: Tue Jan 16, 2007 7:00 pm    Post subject: How can we know the meaning of parameter of psp API? Reply with quote

Searching into the forum, i can understand that we know the API's name and "NID"
from disassembly/reverse engineering the prx file in the firmware (and/or UMD).
But i still dont know how to know the meaning of parameter of the API.
As i understand when dissembly it, it will show only parameter type suchas...
0x4XXXXXX "sceXXXXXX" (int, int, bool...)
something like that?

From the tutorial, in the case of
sceGuDrawBuffer(GU_PSM_8888, (void*)FRAME_BUFFER_SIZE, FRAME_BUFFER_WIDTH);
how to know the define parameter "GU_PSM_8888"
And how to know is there another valid value for 1st argument of sceGuDrawBuffer?
Or does that defined values are discover from disassembler too?
Back to top
View user's profile Send private message
Bytrix



Joined: 14 Sep 2005
Posts: 72
Location: England

PostPosted: Tue Jan 16, 2007 7:19 pm    Post subject: Reply with quote

The whole SDK was produced by decompiling system PRXs and analyzing the function calls in them. If you look through the ASM you can see what hardware registers are used for each inbuilt function and then the SDK adds an interface to those functions in C.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group