[Coco] Finding the Start,End, and EXEC of a loaded ML program
Mark McDougall
msmcdoug at iinet.net.au
Mon Jun 3 10:10:51 EDT 2019
On 3/06/2019 11:45 pm, rietveld rietveld wrote:
> Hi. I would like to archive 100 plus dragon tapes to disk. Is there
> an easy way to find the Start,End, and EXEC of the program after it
> is loaded so I can SAVEM to disk
MACHINE CODE PROGRAM ADDRESSES
(a) For tape:
START: PEEK(487) * 256 + PEEK(488)
END: PEEK(126) * 256 + PEEK(127)-1
EXEC: PEEK(157) * 256 + PEEK(158)
(b) For disk: (Dragon only)
FOR X=1618 TO 1623 STEP 2: PRINT
PEEK(X) * 256 + PEEK(X+1);:NEXT
The resulting numbers will be:
START, LENGTH and EXEC.
To find END address, add START and LENGTH together and
deduct 1.
link: <http://archive.worldofdragon.org/index.php?title=Dragon_Notebook>
Regards,
--
Mark McDougall
<http://retroports.blogspot.com.au>
More information about the Coco
mailing list