Get sceKernelExitGame memory addres

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

Moderators: cheriff, TyRaNiD

Post Reply
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Get sceKernelExitGame memory addres

Post by Pirata Nervo »

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 ?
Image
Upgrade your PSP
JumpR
Posts: 25
Joined: Sun Feb 10, 2008 1:07 am

Post by JumpR »

Use the following function from the 3.80 M33 SDK:

Code: Select all

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: Select all

	SceModule2* mod = sceKernelFindModuleByName("sceLoadExec");
	u32 text_addr = mod->text_addr;
	// replace 0x0000 with the offset
	Loc_sceKernelExitGame = text_addr + 0x0000;
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Thank you!!
I will do it ;)
Image
Upgrade your PSP
Post Reply