[Coco] Exec address of disk loaded ml program?

L. Curtis Boyle curtisboyle at sasktel.net
Tue Apr 10 13:55:40 EDT 2007


On Tue, 10 Apr 2007 10:01:00 -0600, Fedor Steeman <petrander at gmail.com>  
wrote:

> Hi all,
>
> Probably a dumb question, but in Disk Basic how to retrieve the execute
> address of a ml program loaded from floppy?
>
> I mean, if EXEC can figure out where to find the address, so can I...
>
> Thanks,
> Fedor
>

You can look at the 2 last 2 bytes of the .BIN file, or, after LOADMing  
it, you can do:
?PEEK(157)*256+PEEK(158)

This works with cassette files (that don't autostart) as well.


-- 
L. Curtis Boyle



More information about the Coco mailing list