Article View: net.micro.atari8
Article #187Request for info: Summary
From: Rick Genter
Date: Mon, 05 May 1986 13:07
Date: Mon, 05 May 1986 13:07
18 lines
1673 bytes
1673 bytes
About a week ago I sent out a request asking if anyone knew how to find
out from which drive a Basic program had been executed. I got two responses.
The first indicated that location $301 (or PEEK(769)) returns the unit number
of the last SIO call, which will be the loading of your Basic program if you
do nothing else in between. The second, which was posted to the mailing list,
was an incredibly imaginative hack which involved moving the cursor back to
the line containing the "RUN" command, scanning it for a colon, and looking for
the number immediately preceding it. I liked that one; I may have it framed.
Unfortunately, it won't work from a chained program. Still, an extra two
points for the imagination required to come up with that one!
Thanks to both respondants. A happy hacking to all.
--------
Rick Genter BBN Laboratories Inc.
(617) 497-3848 10 Moulton St. 6/506
rgenter@labs-b.bbn.COM (Internet new) Cambridge, MA 02238
rgenter@bbn-labs-b.ARPA (Internet old) ...!{decvax,linus}!bbncca!rgenter (UUCP)
Technical Details
Message-ID:
<8605051928.AA08079@ucbvax.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!ucbvax!BBN-LABS-B.ARPA!rgenterShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!ucbvax!BBN-LABS-B.ARPA!rgenter From: rgenter@BBN-LABS-B.ARPA (Rick Genter) Newsgroups: net.micro.atari8 Subject: Request for info: Summary Message-ID: <8605051928.AA08079@ucbvax.berkeley.edu> Date: Mon, 5-May-86 09:07:25 EDT Article-I.D.: ucbvax.8605051928.AA08079 Posted: Mon May 5 09:07:25 1986 Date-Received: Wed, 7-May-86 01:57:26 EDT Sender: usenet@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 18