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 

PSP decompiler
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Griever



Joined: 20 Jun 2009
Posts: 6

PostPosted: Mon Jun 22, 2009 6:06 pm    Post subject: Reply with quote

Didn't anybody think about porting decomiler to windows? Just like it's done with prxtool. Much of potential users actually use abominable win32. Sad but true. And I guess, it's actually not very hard to compile it under gnu win compiler.
Back to top
View user's profile Send private message
[wl]



Joined: 05 May 2006
Posts: 16

PostPosted: Tue Jun 23, 2009 7:29 am    Post subject: Reply with quote

VERY slow git...
Back to top
View user's profile Send private message
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Tue Jun 23, 2009 12:20 pm    Post subject: Reply with quote

Griever, you are right it is easy to make a win version, I built it the last time git was updated and source changes are minimal (I corrected a single crash-causing-on-exit problem in main if I remember right, kudos to the TC/Author(s) on a great program... with portability no less!):
pspdecompiler_2009-05-20_win32.zip

binary and source ~ with minimal changes included ~ if anyone else stuck on win wants to see what this thing is capable of (note to newbs, it's not magic and doesn't do *everything* for you, you will still have to be able to check it's work against disassembly.)

Used msys with mingw installed, on a (bleh) vista x64 machine no less. If I can build it on here, it must not be that hard.

The "hardest" part really is tracking down libexpat.a/h for windows, I mentioned where to get it (prebuilt) in build txt (edit:/fixed) Probably a better, more maintainable way of doing win builds but for whatever reason msys wasn't co-operating with me on self-searching usr paths for libs/headers that day.


Last edited by cory1492 on Wed Jun 24, 2009 10:15 am; edited 1 time in total
Back to top
View user's profile Send private message
[wl]



Joined: 05 May 2006
Posts: 16

PostPosted: Tue Jun 23, 2009 11:35 pm    Post subject: Reply with quote

is it possible to do the same for usual BOOT.BIN files from UMD?
Back to top
View user's profile Send private message
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Wed Jun 24, 2009 12:31 am    Post subject: Reply with quote

Griever: I compiled without any problems with mingw. I only needed to install expat.

wl: Not sure, it crashed when I tried one umd... =/
_________________
...sorry for my english...
Back to top
View user's profile Send private message
[wl]



Joined: 05 May 2006
Posts: 16

PostPosted: Wed Jun 24, 2009 5:55 am    Post subject: Reply with quote

i think it's because of elf loader, but there is many "proper" loaders included in psp emulators, i.e. Potemkin or pspplayer
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Wed Jun 24, 2009 6:42 am    Post subject: Reply with quote

When I try to compile the src I've: "_spawnvp: Invalid argument".
I've expat installed!
_________________
Get Xplora!
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Wed Jun 24, 2009 7:22 am    Post subject: Reply with quote

I've some problems with a "jr", the code show a empty switch...
I'm using the version posted by cory1492 (maybe not the lastest) , I hope that this problem will be fixed soon!
Anyway, amazing work man!
_________________
Get Xplora!
Back to top
View user's profile Send private message
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Wed Jun 24, 2009 10:38 am    Post subject: Reply with quote

The one I posted is based on the current public source, compiled likely the same day hnaves last updated it.

I updated the original file now that I've had a chance to review the license for libexpat, there is now a link to a much simpler zip with prebuilt win32 expat binary in it instead of the pre-built dll packages.

BOOT.BIN (when it isn't just NULL'ed or a phony) or decrypted EBOOT.BIN should be static ELF files, I think psp decompiler currently only takes care of prx/relocateable elfs? (see the tail of this discussion)
Back to top
View user's profile Send private message
[wl]



Joined: 05 May 2006
Posts: 16

PostPosted: Wed Jun 24, 2009 6:29 pm    Post subject: Reply with quote

it's strange, but it not work properly when i compile sources under MVS2008.

first, in function
void propagate_constants (struct subroutine *sub); //file constants.c

variable "struct ssavar temp" is not fully initialized.

second, if i use -n option, i've got unhandled exception in function

void destroy_hashtable (void *ptr, void *arg); //file hash.c

at: free (ht->table);
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Wed Jun 24, 2009 9:09 pm    Post subject: Reply with quote

This is an amazing project. I hope this gets continued, very very very good job. This will ease a lot PSP hacking. Congrats and keep it growing!!
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Thu Jun 25, 2009 8:32 am    Post subject: Reply with quote

[wl] wrote:
it's strange, but it not work properly when i compile sources under MVS2008.

You will have to port the code, or set the right flags, or instruct MVS to use the Gnu C++ compiler instead of it's internal one. That kind of porting generally takes away portability, better to use msys with mingw (or cygwin I guess, though that will rely on cygwin dlls) to build with Gnu tools just like is done on the native build platform unless you want to either port it to MVS or keep mentioning problems with building it.
Back to top
View user's profile Send private message
Griever



Joined: 20 Jun 2009
Posts: 6

PostPosted: Fri Jun 26, 2009 2:19 am    Post subject: Reply with quote

Thanks for win build issue answers.
The only problem I have now: pspdecompiler does not recognize game's eboots, though prxtool disasembles all of them ok and creates elfs, which are entirely recognized by IDA. I checked out "Chessmaster The Art of Learning" and "Archer Maclean's Mercury" EBOOT.BINs.
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Fri Jun 26, 2009 4:28 am    Post subject: Reply with quote

ne0h wrote:
I've some problems with a "jr", the code show a empty switch...
I'm using the version posted by cory1492 (maybe not the lastest) , I hope that this problem will be fixed soon!
Anyway, amazing work man!

I've reversed the code and I've seen that the switch are correct but you messed up the arguments of the switch, I think it's a bug...
This is a part of code:
Code:

var6 = ((int *)((var5 << 0x00000002) + 0x00000AB0))[0];

                        switch()
                        {
                            case 0:
                                var4 = 0;
                                        goto label35;
                            case 1:
                                ((int *)var2)[10] = var4;
                                        goto label32;
                            case 2:
                                var4 = ((int *)var2)[10];
                                        goto label32;
                            case 3:
[...]


Probably you messed up the breaks at the end of each "case"...
_________________
Get Xplora!
Back to top
View user's profile Send private message
victorprosa



Joined: 14 Jan 2009
Posts: 38

PostPosted: Sat Jul 04, 2009 3:16 pm    Post subject: Reply with quote

Just a question...

How the makefile should look like when re-compiling the prx?

I mean, libraries, etc, cause it is supposed to have most libraries included, but i had problems when creating a makefile...
Back to top
View user's profile Send private message Send e-mail
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sat Jul 04, 2009 6:39 pm    Post subject: Reply with quote

victorprosa wrote:
Just a question...

How the makefile should look like when re-compiling the prx?

I mean, libraries, etc, cause it is supposed to have most libraries included, but i had problems when creating a makefile...


Since this decompiler isnt fully finish, I dont think you should be worried about compiling it back into a prx.
_________________
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
Back to top
View user's profile Send private message AIM Address
slasher2661996



Joined: 22 Feb 2009
Posts: 91
Location: Melbourne Australia ZOMG

PostPosted: Sat Jul 04, 2009 7:27 pm    Post subject: Reply with quote

victorprosa wrote:
Just a question...

How the makefile should look like when re-compiling the prx?

I mean, libraries, etc, cause it is supposed to have most libraries included, but i had problems when creating a makefile...


Trial & Error.
Back to top
View user's profile Send private message
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Mon Jul 06, 2009 10:44 pm    Post subject: Reply with quote

Hi,
hows this project going? Any news? =)
_________________
...sorry for my english...
Back to top
View user's profile Send private message
hnaves



Joined: 03 Feb 2009
Posts: 30

PostPosted: Sat Jul 11, 2009 5:56 am    Post subject: Reply with quote

Hi,

I am very busy at the moment, and I will not be able to continue the development of this project during the next two months. I have a lot of plans (including FPU support) but have no time :-(
Back to top
View user's profile Send private message
[wl]



Joined: 05 May 2006
Posts: 16

PostPosted: Sat Jul 11, 2009 8:40 am    Post subject: Reply with quote

really bad news :(
i tryed to decompile BOOT.BIN, with small success, only 2-3 functions decompiled, looks like the app decompiles GP and exports only? how do u think, it's possible to add arbitrary address to command line instead GP, because GP in boot.bin just start main thread and exit
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Sat Jul 11, 2009 9:51 pm    Post subject: Reply with quote

[wl] wrote:
really bad news :(
i tryed to decompile BOOT.BIN, with small success, only 2-3 functions decompiled, looks like the app decompiles GP and exports only? how do u think, it's possible to add arbitrary address to command line instead GP, because GP in boot.bin just start main thread and exit

!? i cannot grab any of your words. Could you make some efforts to make yourself understandable ?

Some games use a small BOOT.BIN to load the true game executable as a PRX. If you want to decompile the right thing, you'll need to get the right PRX and decompile it. Isn't that simple ?

EDIT: and some UMD may also present a fake BOOT.BIN, so you need to look for EBOOT.BIN which is normally encrypted.
Back to top
View user's profile Send private message
dark_hex



Joined: 02 Dec 2009
Posts: 18

PostPosted: Thu Dec 03, 2009 5:22 am    Post subject: Reply with quote

Someone can compile the last version and give me the link.
Back to top
View user's profile Send private message Send e-mail
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Thu Dec 03, 2009 7:32 am    Post subject: Reply with quote

I have try to compile it against openwatom it generate code for windows,linux,dos and os/2 i haven"t found the include expat.he he is not present in the win32 port given by cory1492

expat.h is missing

Code:
[f731@port39 source]$ wcl386 *.c
Open Watcom C/C++32 Compile and Link Utility Version 1.8
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
       wcc386 abi.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
abi.c: 12 lines, included 1998, 0 warnings, 0 errors
Code size: 11
       wcc386 allefast.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
allefast.c(700): Error! E1175: Too many initializers
allefast.c(701): Error! E1175: Too many initializers
allefast.c(702): Error! E1175: Too many initializers
allefast.c(703): Error! E1175: Too many initializers
allefast.c(704): Error! E1175: Too many initializers
allefast.c(705): Error! E1175: Too many initializers
allefast.c(706): Error! E1175: Too many initializers
allefast.c(707): Error! E1175: Too many initializers
allefast.c(708): Error! E1175: Too many initializers
allefast.c(709): Error! E1175: Too many initializers
allefast.c(710): Error! E1175: Too many initializers
allefast.c(711): Error! E1175: Too many initializers
allefast.c(712): Error! E1175: Too many initializers
allefast.c(713): Error! E1175: Too many initializers
allefast.c(714): Error! E1175: Too many initializers
allefast.c(715): Error! E1175: Too many initializers
allefast.c(716): Error! E1175: Too many initializers
allefast.c(717): Error! E1175: Too many initializers
allefast.c(718): Error! E1175: Too many initializers
allefast.c(719): Error! E1175: Too many initializers
allefast.c(720): Error! E1147: Too many errors: compilation aborted
Error: Compiler returned a bad status compiling 'allefast.c'
       wcc386 allegrex.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
allegrex.c: 1407 lines, included 2717, 0 warnings, 0 errors
Code size: 3199
       wcc386 alloc.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
alloc.c: 124 lines, included 1406, 0 warnings, 0 errors
Code size: 353
       wcc386 analyser.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
analyser.c: 159 lines, included 2860, 0 warnings, 0 errors
Code size: 868
       wcc386 cfg.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
cfg.c: 237 lines, included 1998, 0 warnings, 0 errors
Code size: 1160
       wcc386 constants.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
constants.c: 195 lines, included 1998, 0 warnings, 0 errors
Code size: 912
       wcc386 dataflow.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
dataflow.c: 151 lines, included 1998, 0 warnings, 0 errors
Code size: 756
       wcc386 decoder.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
decoder.c: 173 lines, included 2383, 0 warnings, 0 errors
Code size: 861
       wcc386 graph.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
graph.c: 235 lines, included 1998, 0 warnings, 0 errors
Code size: 1027
       wcc386 hash.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
hash.c: 311 lines, included 1994, 0 warnings, 0 errors
Code size: 1290
       wcc386 lists.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
lists.c: 248 lines, included 1169, 0 warnings, 0 errors
Code size: 906
       wcc386 liveness.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
liveness.c: 176 lines, included 1998, 0 warnings, 0 errors
Code size: 1217
       wcc386 main.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
main.c: 136 lines, included 3860, 0 warnings, 0 errors
Code size: 717
       wcc386 module.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
module.c: 536 lines, included 1664, 0 warnings, 0 errors
Code size: 3980
       wcc386 nids.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
nids.c(8): Error! E1055: Unable to open 'expat.h'
nids.c(192): Error! E1011: Symbol 'XML_Parser' has not been declared
nids.c(192): Error! E1009: Expecting ';' but found 'p'
nids.c(193): Error! E1063: Missing operand
nids.c(193): Warning! W111: Meaningless use of an expression
nids.c(193): Error! E1009: Expecting ';' but found 'struct'
nids.c(193): Error! E1011: Symbol 'xml_data' has not been declared
nids.c(193): Error! E1009: Expecting ';' but found 'data'
nids.c(194): Error! E1058: Cannot use typedef 'size_t' as a variable
nids.c(194): Error! E1009: Expecting ';' but found 'size'
nids.c(195): Error! E1077: Missing '}'
nids.c(195): Warning! W107: Missing return value for function 'nids_load'
nids.c(197): Warning! W132: No storage class or type specified
nids.c(197): Error! E1129: Type does not agree with previous definition of 'buf'
nids.c(197): Note! I2002: 'buf' defined in: nids.c(195)
nids.c(197): Error! E1011: Symbol 'xmlpath' has not been declared
nids.c(197): Warning! W102: Type mismatch (warning)
nids.c(197): Note! I2003: source conversion type is 'int '
nids.c(197): Note! I2004: target conversion type is 'char const *'
nids.c(197): Error! E1011: Symbol 'size' has not been declared
nids.c(197): Warning! E1181: Parameter 2, sign specifier mismatch
nids.c(197): Note! I2003: source conversion type is 'int *'
nids.c(197): Note! I2004: target conversion type is 'unsigned int *'
nids.c(197): Note! I2002: 'read_file' defined in: utils.h(22)
nids.c(197): Warning! W102: Type mismatch (warning)
nids.c(197): Note! I2003: source conversion type is 'void *'
nids.c(197): Note! I2004: target conversion type is 'int '
nids.c(197): Error! E1054: Expression must be constant
nids.c(198): Error! E1099: Statement must be inside function. Probable cause: missing {
nids.c: 303 lines, included 2099, 6 warnings, 15 errors
Error: Compiler returned a bad status compiling 'nids.c'
       wcc386 operations.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
operations.c: 615 lines, included 1998, 0 warnings, 0 errors
Code size: 4686
       wcc386 outcode.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
outcode.c: 317 lines, included 2791, 0 warnings, 0 errors
Code size: 2036
       wcc386 outgraph.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
outgraph.c: 240 lines, included 2663, 0 warnings, 0 errors
Code size: 1670
       wcc386 output.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
output.c: 781 lines, included 3521, 0 warnings, 0 errors
Code size: 6247
       wcc386 prx.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
prx.c: 506 lines, included 1687, 0 warnings, 0 errors
Code size: 2917
       wcc386 relocs.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
relocs.c: 622 lines, included 1664, 0 warnings, 0 errors
Code size: 4168
       wcc386 ssa.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
ssa.c: 273 lines, included 1998, 0 warnings, 0 errors
Code size: 1629
       wcc386 structures.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
structures.c: 376 lines, included 1998, 0 warnings, 0 errors
Code size: 1953
       wcc386 subroutines.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
subroutines.c: 402 lines, included 1998, 0 warnings, 0 errors
Code size: 2160
       wcc386 switches.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
switches.c: 137 lines, included 1998, 0 warnings, 0 errors
Code size: 777
       wcc386 utils.c
Open Watcom C32 Optimizing Compiler Version 1.8
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
utils.c: 129 lines, included 2151, 0 warnings, 0 errors
Code size: 751
Back to top
View user's profile Send private message Send e-mail MSN Messenger
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Fri Dec 04, 2009 6:46 pm    Post subject: Reply with quote

expat:
http://expat.sourceforge.net/
I believe I used a prebuilt bin for win32, like expat-win32bin-2.0.1.exe, to compile under msys/mingw.
Back to top
View user's profile Send private message
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Fri Jan 01, 2010 5:52 pm    Post subject: Reply with quote

Is there some central repository where people post their reverted C code? Assuming someone starts working on reversing a prx, it sounds like a waste of effort if somebody else already reverted it...

Or is it the kind of stuff people are reluctant to share? Or is it illegal maybe?

Also, I'm quite new with that kind of stuff, but what does it mean when the decompiler finds a function that does nothing?
here's a random example from a file in firmware 6.xx:
Code:

/**
 * Subroutine at address 0x000001B8
 */
void sub_001B8 ()
{
  return;
}

Would that be a bug in the decompiler? A bug in the plugin? Something else?
_________________
Wagic. Play that card game against an AI on your PSP
Back to top
View user's profile Send private message
phobox



Joined: 24 Mar 2008
Posts: 140

PostPosted: Fri Jan 01, 2010 11:07 pm    Post subject: Reply with quote

check the asm.. if pspdecompiler gave you that result the asm shouldn't be big.
Pspdecompiler is not working properly with return values...
_________________
Ciao! from Italy
Back to top
View user's profile Send private message
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Fri Jan 01, 2010 11:11 pm    Post subject: Reply with quote

Thanks, I'll check the asm file. (Note, other functions in the file actually contain things, but a few of them are, like this one, empty)
_________________
Wagic. Play that card game against an AI on your PSP
Back to top
View user's profile Send private message
cualquiercosa327



Joined: 25 Nov 2009
Posts: 5

PostPosted: Wed Feb 03, 2010 1:23 am    Post subject: Reply with quote

hello.Thanks for this tool.
I had found two similar tool (rec and boomerang)
http://www.backerstreet.com/rec/rec.htm

http://boomerang.sourceforge.net/

The first seem also "undestand" MIPS R3000 code.
the problem it is not open source,but maybe could be some kind of coperation
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
Goto page Previous  1, 2
Page 2 of 2

 
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