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 

Get sceKernelExitGame memory addres

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



Joined: 09 Oct 2007
Posts: 409

PostPosted: Wed Mar 12, 2008 7:14 am    Post subject: Get sceKernelExitGame memory addres Reply with quote

I've made a memory dump (in case I need it) using FreePlay's memory dumper.
Do I need to disassemble it?
Or the only thing I need is create a simple program that gets the function address by doing pointer = &function ?
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
JumpR



Joined: 10 Feb 2008
Posts: 25

PostPosted: Thu Mar 13, 2008 7:58 am    Post subject: Reply with quote

Use the following function from the 3.80 M33 SDK:
Code:
sctrlHENFindFunction("sceLoadExec", "LoadExecForUser", 0x05572A5F);

Get that information here: http://silverspring.lan.st/3.5x/index.html

Of course, you can also hardcode the offset, although it's better to keep it dynamic. For it, load up 'loadexec.prx' in prxtool, dissassemble it and search for 05572A5F, see at what adress it is and use it like this:

Code:
   SceModule2* mod = sceKernelFindModuleByName("sceLoadExec");
   u32 text_addr = mod->text_addr;
   // replace 0x0000 with the offset
   Loc_sceKernelExitGame = text_addr + 0x0000;
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Thu Mar 13, 2008 8:28 am    Post subject: Reply with quote

Thank you!!
I will do it ;)
_________________

Upgrade your PSP
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