summaryrefslogtreecommitdiff
path: root/mipspoke.cpp
blob: e4551fb602033b8be15d26fa5a24da86875b2d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <Main.h>
#include <Input.h>

#include "mips.h"
#include "mipsdis.h"
#include "mipsdump.h"

CODE_BEGINS
virtual int startup(void) throw (GeneralException) {
    mipsmem * mymips = new mipsmem();
    Handle * exe = new Input("psx.exe");
    Disassembler * dis = new Disassembler(mymips);
    Dumper * dump = new Dumper(mymips);
    
    verbosity = M_INFO;
    
    mymips->LoadPSYQ(exe);
    
    dis->mainloop();
    delete dis;
    
    printm(M_STATUS, "Finished crawling, dumping...\n");
    
    dump->process();
    
    while (true);
    
    return 0;
}
CODE_ENDS