Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!swrinde!ucsd!pacbell.com!att!att!watmath!watmsg!mwnewman From: mwnewman@watmsg.uwaterloo.ca (the flying undying tomato express) Newsgroups: comp.sys.atari.st Subject: Re: How can I find current DTA address w/o using TRAP #1? Message-ID: <1990Oct26.165727.20511@watmath.waterloo.edu> Date: 26 Oct 90 16:57:27 GMT References: <5429@bdt.UUCP> Sender: daemon@watmath.waterloo.edu (Owner of Many System Processes) Organization: University of Waterloo Lines: 20 In article <5429@bdt.UUCP> you write: > >I need to trap all FSFIRST/FSNEXT calls (in order to substitute my own >filenames), as well as FOPEN() calls ... >... So far I have this working perfectly EXCEPT for the fact that >I can't find the current DTA address; is there any way that I can >do this while processing a TRAP #1? You don't have to do it while processing trap #1. Just find out where it starts, and when it changes. ie: during the initialization of YOUR code (which shouldn't be in a trap #1), do a (normal) Fgetdta() call. This gives you the DTA address at the beginning. Now just trap Fsetdta() (along with Fopen etc. that you're already doing) in case this PD program changes the DTA. It seems to me this should be sufficient, but my ST is not at hand, so I can't check. mike newman mwnewman@msg.waterloo.edu