summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mipspoke.cpp28
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