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

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

Moderators: cheriff, TyRaNiD

Post Reply
laichung
Posts: 123
Joined: Fri May 06, 2005 2:02 pm

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

Post by laichung »

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.
PSP250
Posts: 12
Joined: Sat Nov 19, 2005 2:41 am

Post by PSP250 »

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.
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

Use psp-objdump or pspdasm, get a good mips32 r4000 instruction reference, and a lot of patience...
laichung
Posts: 123
Joined: Fri May 06, 2005 2:02 pm

Post by laichung »

Thanks all information~~~
Those disassemble files started to look meaningful~~
Post Reply