ps1/exe updated from jens

This commit is contained in:
László Molnár
2006-08-29 16:25:59 +02:00
parent 59dd33a461
commit 31b629a19c
11 changed files with 1954 additions and 1576 deletions
+11 -2
View File
@@ -59,8 +59,8 @@ protected:
virtual void putBkupHeader(const unsigned char *src, unsigned char *dst, unsigned *len);
virtual bool getBkupHeader(unsigned char *src, unsigned char * dst);
virtual bool readBkupHeader();
virtual void buildPS1Loader(const Filter *ft=0);
virtual int buildLoader(const Filter *ft);
virtual bool findBssSection();
virtual Linker* newLinker() const;
virtual int readFileHeader();
@@ -111,16 +111,25 @@ protected:
}
__attribute_packed;
typedef struct bss_nfo
{
LE16 hi1, op1, lo1, op2;
LE16 hi2, op3, lo2, op4;
}
__attribute_packed;
ps1_exe_t ih, oh;
ps1_exe_hb_t bh;
bool isCon;
bool is32Bit;
bool build_Loader;
bool buildPart2;
bool foundBss;
unsigned ram_size;
unsigned sa_cnt, overlap;
unsigned sz_lunc, sz_lcpr;
unsigned pad_code;
unsigned bss_start, bss_end;
// filesize-PS_HDR_SIZE
unsigned fdata_size;
};