[Coco] Basic's loadm and discontinuous binaries
Robert Gault
robert.gault at att.net
Sat Jan 26 07:37:19 EST 2019
To add to what Art said, and more specifically as stated in the "Unravelled" series:
"Binary data is stored on the disk as one large block preceded by a five byte preamble. The data
block is followed by five more bytes which are another preamble if there is another block of data
following or the five bytes are a postamble if there are no further data blocks."
BYTE PREAMBLE POSTAMBLE
0 $00 preamble flag $FF postamble flag
1,2 length of block $00,$00
3,4 load address EXEC address , if there is one, or $00,$00
Don't be confused by the use of "data" above. The contents can be anything; data for a text or
graphics screen, an ml program, a Basic program, bytes to erase memory, etc..
Robert
Arthur Flexser wrote:
> Yes, this ability was added with Extended Basic. Attempts to load code
> above $8000 if you are in RAM/ROM mode will fail, though, since you can't
> store new data to a ROM address.
>
> Art
>
> On Sat, Jan 26, 2019 at 5:14 AM Joel Rees <joel.rees at gmail.com> wrote:
>
>> Can loadm properly load a binary with one org low, code, and a second load
>> high, with constant strings -- and a gap between the two?
>>
>> Anybody know?
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>>
>
More information about the Coco
mailing list