Tornado Reference : Tornado Utilities
coffHex960 - convert a COFF format object file into Motorola hex records
coffHex960 [-[TD]imifile,offset][-a offset] [-l] file
This program generates a Motorola hex format (S-record) file from a COFF format object module. Normally, the entry address in the object module is used as the starting address of the output module in ROM. However, if the -a flag is used, then offset is used as the starting address. offset is a hex value.
Normally S1 records are generated for addresses less than 64K; S2 records are generated for addresses greater than 64K and less than 16M; and S3 records are generated for addresses greater than 16M.
The text or data section from a second (optional) file can also be processed. This file is usually the IMI file for an Intel 960 processor.
Example:
coffHex960 -Dimi,0x0 -a 0x800 bootrom
- -l
- generate only S2 records.
- -a offset
- use offset as the ROM entry address, rather than the address in the object module.
- -[TD]imifile,offset
- use either the text (T) or data(D) section from the imi file. Use address as the IMI offset in ROM.