diff options
author | pixel <pixel> | 2004-01-04 00:30:28 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-01-04 00:30:28 +0000 |
commit | 904693dd6751bdc06e98f4437da541d5e6575e1c (patch) | |
tree | 420d326a2ae8351726046b16837a8069b38148cc /mipspoke.cpp | |
parent | a422d1dcda810b2f129a9a5213f3f4b440be4bbc (diff) |
Whoops
Diffstat (limited to 'mipspoke.cpp')
-rw-r--r-- | mipspoke.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mipspoke.cpp b/mipspoke.cpp new file mode 100644 index 0000000..a6ec065 --- /dev/null +++ b/mipspoke.cpp @@ -0,0 +1,28 @@ +#include <Main.h> +#include <Input.h> + +#include "mips.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 |