[Coco] Format of a LOADM file.

William Astle lost at l-w.ca
Fri Jan 19 17:04:46 EST 2018


On 2018-01-19 03:00 PM, James Ross wrote:
> I could probably eventually find this.  But I am thinking that possibly someone here has the information at their fingertips and could provide me w/ a link or small explanation.
> 
> Looking for what bytes come before or after the binaries and what they mean and how a multi-section binary file is laid out.
> 
> TIA for any pointers
> James
> 

Each "section" is preceded by a 5 byte preamble that starts with 00h. 
The next two bytes are the length and the final two bytes are the load 
address. Then, of course, the contents of the section follows.

After the final "section", you get a postamble which starts with FFh. 
The next two bytes don't matter. The final two bytes are the execution 
address.

There can be any number of "sections". As soon as LOADM encounters a 
postamble, it stops reading the file, even if there's more stuff after it.



More information about the Coco mailing list