| View previous topic :: View next topic |
| Author |
Message |
vcarriere
Joined: 12 Apr 2005 Posts: 11
|
Posted: Tue Jul 19, 2005 4:50 pm Post subject: Fonction Source Code |
|
|
First, i have to say that i'm new to psp programming (but not new to programming) and i was looking at the irda source code. I saw pspDebugScreenInit() and i looked at the pspdebug.h header file. I was wondering if the source of this fonction can be found as source or is it already pre-compiled? I'm just curious and i want to see what functions does because usually i had the .c file with the header file.
Thanks
Vincent |
|
| Back to top |
|
 |
vcarriere
Joined: 12 Apr 2005 Posts: 11
|
Posted: Thu Jul 21, 2005 4:55 am Post subject: |
|
|
| Anyone? i'm only trying to understand here... |
|
| Back to top |
|
 |
deagle
Joined: 29 Jun 2005 Posts: 8
|
Posted: Thu Jul 21, 2005 5:00 am Post subject: |
|
|
| look into the scr_printf.c file, just near the pspdebug.h file |
|
| Back to top |
|
 |
vcarriere
Joined: 12 Apr 2005 Posts: 11
|
Posted: Thu Jul 21, 2005 5:38 am Post subject: |
|
|
I did a search in the whole cygwin folder and didn't find any scr_printf.c file nor any .c file at all (except in Sample).
Vincent |
|
| Back to top |
|
 |
sexdwarf
Joined: 14 Jul 2005 Posts: 34
|
Posted: Thu Jul 21, 2005 6:01 am Post subject: |
|
|
/usr/local/pspdev/psp/sdk/include/pspdebug.h _________________ ...isn't it nice, sugar and spice...
...luring disco dollies to a life of vice... |
|
| Back to top |
|
 |
vcarriere
Joined: 12 Apr 2005 Posts: 11
|
Posted: Thu Jul 21, 2005 7:09 am Post subject: |
|
|
| just found out that i didn't have the sources... so they must be already compiled... in linux, what's the equivalent of a dll with pre-compiled code? |
|
| Back to top |
|
 |
sexdwarf
Joined: 14 Jul 2005 Posts: 34
|
Posted: Thu Jul 21, 2005 7:18 am Post subject: |
|
|
yes, a dll type shard library is known as a shared object, extension .so
you could just grab the sources via svn,
| Code: | | svn co svn://svn.pspdev.org/psp/pspsdk |
_________________ ...isn't it nice, sugar and spice...
...luring disco dollies to a life of vice... |
|
| Back to top |
|
 |
vcarriere
Joined: 12 Apr 2005 Posts: 11
|
Posted: Thu Jul 21, 2005 8:33 am Post subject: |
|
|
Thx. So if i don't have the sources, where is the pre compiled code the compiler gets his fuctions from? I son't see any .so or .c files....
sorry if this is a noob question. |
|
| Back to top |
|
 |
deagle
Joined: 29 Jun 2005 Posts: 8
|
Posted: Thu Jul 21, 2005 9:39 am Post subject: |
|
|
scr_printf.c :
| Code: | void pspDebugScreenInit()
{
X = Y = 0;
/* Place vram in uncached memory */
g_vram_base = (void *) (0x40000000 | sceGeEdramGetAddr());
sceDisplaySetMode(0, PSP_SCREEN_WIDTH, PSP_SCREEN_HEIGHT);
sceDisplaySetFrameBuf((void *) g_vram_base, PSP_LINE_SIZE, PSP_PIXEL_FORMAT, 1);
clear_screen(bg_col);
init = 1;
} |
|
|
| Back to top |
|
 |
vcarriere
Joined: 12 Apr 2005 Posts: 11
|
Posted: Thu Jul 21, 2005 12:02 pm Post subject: |
|
|
Yeah, i finally found them by downloading the sources from the server.
Now what i can't find anywhere is the sceDisplay* Functions source code....
I might be asking too many questions, but i've been working with uC and windows programming and usually i'm very close to the hardware i program for and i know anything i need to know.
Sorry. |
|
| Back to top |
|
 |
vcarriere
Joined: 12 Apr 2005 Posts: 11
|
Posted: Thu Jul 21, 2005 12:05 pm Post subject: |
|
|
| Is it possible that those are found in .s files wich are in Assembly language? |
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Thu Jul 21, 2005 4:47 pm Post subject: |
|
|
| vcarriere wrote: | Now what i can't find anywhere is the sceDisplay* Functions source code....
|
The sce*-functions are provided by the Sony PSP kernel firmware. If you have the source code of it, let me know ;-) |
|
| Back to top |
|
 |
vcarriere
Joined: 12 Apr 2005 Posts: 11
|
Posted: Thu Jul 21, 2005 5:24 pm Post subject: |
|
|
| so basically, the sce functions are in the firmware and you send data at this address with the required parameters or you put the values in a accumulator and call the function... |
|
| Back to top |
|
 |
hlide
Joined: 10 Sep 2006 Posts: 750
|
Posted: Sun Sep 10, 2006 8:44 pm Post subject: |
|
|
| vcarriere wrote: | | so basically, the sce functions are in the firmware and you send data at this address with the required parameters or you put the values in a accumulator and call the function... |
basically, if you want source code of sceDisplay* functions so badly, you MUST need to sign a NDA* with SONY and buy a very expensive licence.
"Suffisamment clair, non ?"*
*: Non Disclosure Agreement
*: [it's] clear enough, isn't it ? |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Mon Sep 11, 2006 9:27 am Post subject: |
|
|
can disassmble to get the source of a firmware function
use psplinks memory dump to help you best _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Mon Sep 11, 2006 11:04 pm Post subject: |
|
|
First, why would you need the source of those functions? the sceDisplay* functions aren't that interesting anyway.... They just interface with the LCD controller, sceLcdc..............
The only use of their disassembly would only be, in my opinion, to execute code on the Me, since you can't call sce* functions directly... |
|
| Back to top |
|
 |
|