rgenter@BBN-LABS-B.ARPA (Rick Genter) (05/05/86)
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)