[Coco] Format of a LOADM file.

James Ross jrosslist at outlook.com
Fri Jan 19 17:08:24 EST 2018


Excellent William -- just what I was looking for! 

Thanks!
James
________________________________________
From: Coco <coco-bounces at maltedmedia.com> on behalf of William Astle <lost at l-w.ca>
Sent: Friday, January 19, 2018 10:04 PM
To: coco at maltedmedia.com
Subject: Re: [Coco] Format of a LOADM file.

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.


--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco


More information about the Coco mailing list