home *** CD-ROM | disk | FTP | other *** search
- /* Format of Intel execute file
-
- record format:
- red_type: 1 --- type of record
- red_len : 2 --- length of record
- red_data: red_len-1 --- data of record
- red_sum : 1 --- check sum code of recode
-
- file head record: red_type --- 02H
- red_data:
- fname_len: 1 --- length of file name
- fname: fname_len --- file name
- ? : 2 --- (E5 10)
- fdate: 8 --- date when the file created
- ftime: 8 --- time when the file created
-
- segments record: red_type --- 20H
- red_data:
- seg_data 1 5
- seg_data 2
- .
- .
- .
- seg_data n
- red_sum
- where seg_data:
- seg_type: 1 --- type of segment
- seg_addr: 2 --- begin address of segment
- seg_len: 2 --- length of segment
-
- type declare of public symbols tabel record: red_type --- 14H
- red_data:
- psym_type (for symbol 1) 1
- psym_type (for symbol 2) 1
- .
- .
- .
- psym_type (for symbol n) 1
- red_sum
-
- public symbols record: red_type --- 16H
- red_data:
- psym_type: 1 --- type of public symbol
- psym_addr: 2 (for 1) --- address of public symbol
- psym_len : 1 (for 1) --- length of public symbol
- psymname : psym_len
- 20H 1 (for 1) --- space between symbols
- .
- .
- .
- psym_addr: 2 (for n) --- address of public symbol
- psym_len : 1 (for n) --- length of public symbol
- psymname : psym_len
- 20H 1 (for n) --- flag of end
- red_sum
-
-
-
-