🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: net.micro.atari8
1 messages
1 total messages Started by Rick Genter Mon, 05 May 1986 13:07
Request for info: Summary
#187
Author: Rick Genter
Date: Mon, 05 May 1986 13:07
18 lines
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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads