From 904693dd6751bdc06e98f4437da541d5e6575e1c Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 4 Jan 2004 00:30:28 +0000 Subject: Whoops --- mipspoke.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 mipspoke.cpp 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 +#include + +#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 -- cgit v1.2.3