9 PMYBrainAnalys pMyBrainAnalys
= NULL
;
10 PMYBrainAnalys pStartMyBrainAnalys
= NULL
;
13 int main(int argc
, char * argv
[])
15 //CPU_UNINT BaseAddress=0;
24 //printf("Usage :\n");
25 //printf(" need for -inbin and autodetect if it does not found a PE header \n");
26 //printf(" -cpu m68000 : convert motorala 68000/68008 to intel asm \n");
27 //printf(" -cpu m68010 : convert motorala 68010 to intel asm \n");
28 //printf(" -cpu m68020 : convert motorala 68020 to intel asm \n");
29 //printf(" -cpu m68030 : convert motorala 68030 to intel asm \n");
30 //printf(" -cpu m68040 : convert motorala 68040 to intel asm \n");
31 //printf(" -cpu ppc : convert PowerPC to intel asm \n");
32 //printf(" -cpu ARM4 : convert ARM4 to intel asm \n");
33 //printf("------------------------------------------------------------------\n");
34 //printf(" for -inbin and autodetect if it does not found a PE header or do\n");
35 //printf(" not set at all, this options are free to use \n");
36 //printf(".......-BaseAddress adr : the start base address only accpect \n");
37 //printf("....... dec value");
38 //printf("------------------------------------------------------------------\n");
39 //printf(" -in filename : try autodetect file type for you");
40 //printf(" whant convert\n");
41 //printf(" -inBin filename : the bin file you whant convert\n");
42 //printf(" -inExe filename : the PE file you whant convert\n");
43 //printf(" -OutAsm filename : the Asm file you whant create\n");
44 //printf(" -OutDis filename : Do disambler of the source file\n");
45 //printf("------------------------------------------------------------------\n");
46 //printf("More cpu will be added with the time or options, this is \n");
47 //printf("version 0.0.1 of the cpu to intel converter writen by \n");
48 //printf("Magnus Olsen (magnus@greatlord.com), it does not do anything \n");
49 //printf("yet, more that basic desgin how it should be writen. \n");
50 //printf("Copyright 2006 by Magnus Olsen, licen under GPL 2.0 for now. \n");
56 ///* fixme better error checking for the input param */
57 //for (t=1; t<argc;t+=2)
59 // if (stricmp(argv[t],"-in"))
61 // infile = argv[t+1];
65 // if (stricmp(argv[t],"-inBin"))
67 // infile = argv[t+1];
71 // if (stricmp(argv[t],"-inExe"))
73 // infile = argv[t+1];
77 // if (stricmp(argv[t],"-OutAsm"))
79 // outfile = argv[t+1];
81 // if (stricmp(argv[t],"-OutDis"))
83 // outfile = argv[t+1];
86 // if (stricmp(argv[t],"-BaseAddress"))
88 // BaseAddress = atol(argv[t+1]);
90 // if (stricmp(argv[t],"-cpu"))
98 // mode 1 convert to intel
99 // mode 2 convert to ppc
100 //return LoadPFileImage(infile,outfile,BaseAddress,cpuid,type, mode);
101 //LoadPFileImage("e:\\testppc.exe","e:\\cputointel.asm",0,0,0,1);
102 LoadPFileImage("e:\\testppc.exe","e:\\cputointel.asm",0,0,0,1);
103 //pMyBrainAnalys = NULL;
104 //pStartMyBrainAnalys = NULL;
105 //LoadPFileImage("e:\\testppc.exe","e:\\cputoppc.asm",0,0,0,2);
107 // return LoadPFileImage("e:\\testms.exe","e:\\cputointel.asm",0,0,0,1); // convert