mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:13:03 +00:00
Adding stub for AnyalsingProcess and ConvertToIntelProcess
svn path=/trunk/; revision=25449
This commit is contained in:
parent
7c96cb069a
commit
f74e30f8ca
6 changed files with 99 additions and 25 deletions
|
@ -114,9 +114,17 @@ CPU_INT LoadPFileImage( char *infileName, char *outputfileName,
|
|||
{
|
||||
type=1;
|
||||
}
|
||||
FreeAny();
|
||||
fclose(outfp);
|
||||
return 0;
|
||||
else
|
||||
{
|
||||
if (mode > 1)
|
||||
{
|
||||
AnyalsingProcess();
|
||||
ConvertToIntelProcess(outfp,cpuid);
|
||||
FreeAny();
|
||||
}
|
||||
fclose(outfp);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (type== 1)
|
||||
|
@ -124,48 +132,83 @@ CPU_INT LoadPFileImage( char *infileName, char *outputfileName,
|
|||
if (stricmp(cpuid,"m68000"))
|
||||
{
|
||||
ret = M68KBrain(cpu_buffer,cpu_pos,cpu_size,BaseAddress,68000,outfp,mode);
|
||||
FreeAny();
|
||||
if (mode > 1)
|
||||
{
|
||||
AnyalsingProcess();
|
||||
ConvertToIntelProcess(outfp,cpuid);
|
||||
FreeAny();
|
||||
}
|
||||
fclose(outfp);
|
||||
}
|
||||
else if (stricmp(cpuid,"m68010"))
|
||||
{
|
||||
ret = M68KBrain(cpu_buffer,cpu_pos,cpu_size,BaseAddress,68010,outfp,mode);
|
||||
FreeAny();
|
||||
if (mode > 1)
|
||||
{
|
||||
AnyalsingProcess();
|
||||
ConvertToIntelProcess(outfp,cpuid);
|
||||
FreeAny();
|
||||
}
|
||||
fclose(outfp);
|
||||
return ret;
|
||||
}
|
||||
else if (stricmp(cpuid,"m68020"))
|
||||
{
|
||||
ret = M68KBrain(cpu_buffer,cpu_pos,cpu_size,BaseAddress,68020,outfp,mode);
|
||||
FreeAny();
|
||||
if (mode > 1)
|
||||
{
|
||||
AnyalsingProcess();
|
||||
ConvertToIntelProcess(outfp,cpuid);
|
||||
FreeAny();
|
||||
}
|
||||
fclose(outfp);
|
||||
return ret;
|
||||
}
|
||||
else if (stricmp(cpuid,"m68030"))
|
||||
{
|
||||
ret = M68KBrain(cpu_buffer,cpu_pos,cpu_size,BaseAddress,68030,outfp,mode);
|
||||
FreeAny();
|
||||
if (mode > 1)
|
||||
{
|
||||
AnyalsingProcess();
|
||||
ConvertToIntelProcess(outfp,cpuid);
|
||||
FreeAny();
|
||||
}
|
||||
fclose(outfp);
|
||||
return ret;
|
||||
}
|
||||
else if (stricmp(cpuid,"m68040"))
|
||||
{
|
||||
ret = M68KBrain(cpu_buffer,cpu_pos,cpu_size,BaseAddress,68040,outfp,mode);
|
||||
FreeAny();
|
||||
if (mode > 1)
|
||||
{
|
||||
AnyalsingProcess();
|
||||
ConvertToIntelProcess(outfp,cpuid);
|
||||
FreeAny();
|
||||
}
|
||||
fclose(outfp);
|
||||
return ret;
|
||||
}
|
||||
else if (stricmp(cpuid,"ppc"))
|
||||
{
|
||||
ret = PPCBrain(cpu_buffer,cpu_pos,cpu_size,BaseAddress,0,outfp,mode);
|
||||
FreeAny();
|
||||
if (mode > 1)
|
||||
{
|
||||
AnyalsingProcess();
|
||||
ConvertToIntelProcess(outfp,cpuid);
|
||||
FreeAny();
|
||||
}
|
||||
fclose(outfp);
|
||||
return ret;
|
||||
}
|
||||
else if (stricmp(cpuid,"arm4"))
|
||||
{
|
||||
ret = ARMBrain(cpu_buffer,cpu_pos,cpu_size,BaseAddress,4,outfp,mode);
|
||||
FreeAny();
|
||||
if (mode > 1)
|
||||
{
|
||||
AnyalsingProcess();
|
||||
ConvertToIntelProcess(outfp,cpuid);
|
||||
FreeAny();
|
||||
}
|
||||
fclose(outfp);
|
||||
return ret;
|
||||
}
|
||||
|
@ -175,7 +218,12 @@ CPU_INT LoadPFileImage( char *infileName, char *outputfileName,
|
|||
{
|
||||
|
||||
ret = PEFileStart(cpu_buffer, 0, BaseAddress, cpu_size, outfp, mode);
|
||||
FreeAny();
|
||||
if (mode > 1)
|
||||
{
|
||||
AnyalsingProcess();
|
||||
ConvertToIntelProcess(outfp,cpuid);
|
||||
FreeAny();
|
||||
}
|
||||
fclose(outfp);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue