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

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
cp25stack
Posts: 11
Joined: Sat Dec 16, 2006 3:52 pm

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

Post by cp25stack »

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?
Bytrix
Posts: 72
Joined: Wed Sep 14, 2005 7:26 pm
Location: England

Post by Bytrix »

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.
Post Reply