[Coco] Saving ML programs

Darren A mechacoco at gmail.com
Fri Mar 13 11:18:36 EDT 2009


On 3/13/09, George Ramsower wrote:
>
>  Not being a real programmer, I understood that question totally. He wants
> to know how to find the start, end and execution addresses of a given
> program.
>  At one time, a long time ago.... far, far away, someone had the answer to
> that. It seems that after loading a machine language program, this info was
> stored at specific addresses in the coco and some PEEKING would reveal those
> values. I just don't remember how to do it.
>

--

You can PEEK at $9D:9E to get the EXEC address after loading an ML
program. Sometimes that will be the same as the START address.  There
are no PEEKs that will tell you the actual START and END addresses.
Furthermore, the ML file could be a multi-segment file meaning that it
can have code and data loaded into multiple non-contiguous regions of
memory.

Darren



More information about the Coco mailing list