mirror of
https://github.com/reactos/reactos.git
synced 2024-10-10 19:27:40 +00:00
fe4dcf7a00
2. move the loadimage stuff to own functions to misc.c 3. rewrite so loader call to brain* after it load the image. 4. setup main using the loader 5. add few more input param to main -in, -inexe, -in try autodetect type of file, -inexe try convert a PE file. svn path=/trunk/; revision=25272
20 lines
523 B
C
20 lines
523 B
C
|
|
#define CPU_UNINT unsigned int
|
|
#define CPU_INT int
|
|
|
|
#define CPU_BYTE unsigned char
|
|
|
|
/* Prototypes for misc stuff */
|
|
|
|
|
|
/* Convert Bit index to int */
|
|
CPU_INT LoadPFileImage(char *infileName, char *outputfileName, CPU_UNINT BaseAddress, char *cpuid, CPU_UNINT type);
|
|
CPU_INT PEFileStart( CPU_BYTE *memory, CPU_UNINT pos, CPU_UNINT base, CPU_UNINT size);
|
|
|
|
CPU_UNINT ConvertBitToByte(CPU_BYTE *bit);
|
|
CPU_UNINT GetMaskByte(CPU_BYTE *bit);
|
|
|
|
CPU_UNINT ConvertBitToByte32(CPU_BYTE *bit);
|
|
CPU_UNINT GetMaskByte32(CPU_BYTE *bit);
|
|
|