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 

Fonction Source Code

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



Joined: 12 Apr 2005
Posts: 11

PostPosted: Tue Jul 19, 2005 4:50 pm    Post subject: Fonction Source Code Reply with quote

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
View user's profile Send private message
vcarriere



Joined: 12 Apr 2005
Posts: 11

PostPosted: Thu Jul 21, 2005 4:55 am    Post subject: Reply with quote

Anyone? i'm only trying to understand here...
Back to top
View user's profile Send private message
deagle



Joined: 29 Jun 2005
Posts: 8

PostPosted: Thu Jul 21, 2005 5:00 am    Post subject: Reply with quote

look into the scr_printf.c file, just near the pspdebug.h file
Back to top
View user's profile Send private message
vcarriere



Joined: 12 Apr 2005
Posts: 11

PostPosted: Thu Jul 21, 2005 5:38 am    Post subject: Reply with quote

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
View user's profile Send private message
sexdwarf



Joined: 14 Jul 2005
Posts: 34

PostPosted: Thu Jul 21, 2005 6:01 am    Post subject: Reply with quote

/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
View user's profile Send private message
vcarriere



Joined: 12 Apr 2005
Posts: 11

PostPosted: Thu Jul 21, 2005 7:09 am    Post subject: Reply with quote

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
View user's profile Send private message
sexdwarf



Joined: 14 Jul 2005
Posts: 34

PostPosted: Thu Jul 21, 2005 7:18 am    Post subject: Reply with quote

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
View user's profile Send private message
vcarriere



Joined: 12 Apr 2005
Posts: 11

PostPosted: Thu Jul 21, 2005 8:33 am    Post subject: Reply with quote

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
View user's profile Send private message
deagle



Joined: 29 Jun 2005
Posts: 8

PostPosted: Thu Jul 21, 2005 9:39 am    Post subject: Reply with quote

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
View user's profile Send private message
vcarriere



Joined: 12 Apr 2005
Posts: 11

PostPosted: Thu Jul 21, 2005 12:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
vcarriere



Joined: 12 Apr 2005
Posts: 11

PostPosted: Thu Jul 21, 2005 12:05 pm    Post subject: Reply with quote

Is it possible that those are found in .s files wich are in Assembly language?
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Thu Jul 21, 2005 4:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
vcarriere



Joined: 12 Apr 2005
Posts: 11

PostPosted: Thu Jul 21, 2005 5:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Sun Sep 10, 2006 8:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Mon Sep 11, 2006 9:27 am    Post subject: Reply with quote

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
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Mon Sep 11, 2006 11:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
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