From c4a21269d57857594236442c3a50b7efb8ed97ce Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Wed, 22 Apr 2009 09:03:06 +0000 Subject: [PATCH] Some help in DSPTool git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3036 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/DSPTool/Src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/DSPTool/Src/main.cpp b/Source/DSPTool/Src/main.cpp index d303a335c3..81abdf61fb 100644 --- a/Source/DSPTool/Src/main.cpp +++ b/Source/DSPTool/Src/main.cpp @@ -208,6 +208,15 @@ void RunAsmTests() // So far, all this binary can do is test partially that itself works correctly. int main(int argc, const char *argv[]) { + if(argc == 1 || (argc == 2 && (!strcmp(argv[1], "--help") || (!strcmp(argv[1], "-h")))) + { + printf("DSPTool [-d] [-o ] [-h ] \n"); + printf("-d: Disassemble\n"); + printf("-o : Results from stdout redirected to a file\n"); + printf("-h
: Output assembly results to a header\n"); + return 0; + } + if (argc == 2 && !strcmp(argv[1], "test")) { RunAsmTests();