[Coco] Basic's loadm and discontinuous binaries

Robert Gault robert.gault at att.net
Sat Jan 26 08:17:57 EST 2019


I should clarify one point. What is below applies to LOADM not LOAD. Basic programs use a different 
format.
Nevertheless, you could save a Basic program to disk and then LOADM it. To get that to work, you 
would need to know where the program was in memory, and what data to put in the Basic data bytes at 
$19 etc..

Robert

Robert Gault wrote:
> 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


More information about the Coco mailing list