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 

Can anyone tell me how to disassemble a function in a prx?

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



Joined: 06 May 2005
Posts: 123

PostPosted: Thu Sep 21, 2006 2:39 pm    Post subject: Can anyone tell me how to disassemble a function in a prx? Reply with quote

Dear all:

I'm trying to learn how to disassemble those function inside the kenrel prx (e.g usb.prx), but I have no knowledge about how to do it. Can anyone give me some information about how to start.

All I know is using the prxtools, extract the function name and NIDs. Using psp-objdump to dump all the source and disassemble the prx file. But after look at the disassemble file, I feel lost. I dont know how to find the "entry point" (is that the right name?) of those functions with those NIDs extracted from prxtool.

Thanks all.
Back to top
View user's profile Send private message
PSP250



Joined: 19 Nov 2005
Posts: 12

PostPosted: Fri Sep 22, 2006 1:03 am    Post subject: Reply with quote

One (out of many) simple GUI based:

1. Get PS2Dis.
2. Use prxtool and the instructions from here.
3. Within PS2Dis press CTRL+G and select the NID/function you want ;)

The other options are using the IDA Pro disassembler or, as you already noted, psp-objdump disassembly, just that you pass the function entrypoint address (as fileoffset) with the "--start-address=ADDR" argument additionally.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Fri Sep 22, 2006 4:04 am    Post subject: Reply with quote

Use psp-objdump or pspdasm, get a good mips32 r4000 instruction reference, and a lot of patience...
Back to top
View user's profile Send private message
laichung



Joined: 06 May 2005
Posts: 123

PostPosted: Fri Sep 22, 2006 12:28 pm    Post subject: Reply with quote

Thanks all information~~~
Those disassemble files started to look meaningful~~
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