[Coco] Exec address of disk loaded ml program?

Bob Devries devries.bob at gmail.com
Tue Apr 10 19:41:26 EDT 2007


The start and end addresses of a contiguous BINARY disk file can be found in 
a similar way, by PEEKing values:

START=PEEK(126)*256+PEEK(127)
END=PEEK(487)*256+PEEK(488)-1
EXEC=PEEK(157)*256+PEEK(158)

Hope it helps.

--
Regards, Bob Devries, Dalby, Queensland, Australia

Isaiah 50:4 The sovereign Lord has given me
the capacity to be his spokesman,
so that I know how to help the weary.

website: http://www.home.gil.com.au/~bdevasl
my blog: http://bdevries.invigorated.org/

----- Original Message ----- 
From: "Fedor Steeman" <petrander at gmail.com>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Wednesday, April 11, 2007 5:09 AM
Subject: Re: [Coco] Exec address of disk loaded ml program?


> 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
>>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco 




More information about the Coco mailing list