[Coco] Exec address of disk loaded ml program?
Fedor Steeman
petrander at gmail.com
Tue Apr 10 15:09:22 EDT 2007
Right, thanks! So at least that is the same as on a cassette-only system...
But I guess on a disk system, there is no easy way of figuring out the start
and end addresses? Unless you use a hex editor to look at the virtual disk?
Cheers,
Fedor
On 10/04/07, L. Curtis Boyle <curtisboyle at sasktel.net> wrote:
>
> 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
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
More information about the Coco
mailing list