Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven!uvaarpa!murdoch!astsun9.astro.Virginia.EDU!gl8f From: gl8f@astsun9.astro.Virginia.EDU (Greg Lindahl) Newsgroups: comp.sys.atari.st Subject: Re: How can I find current DTA address w/o using TRAP #1? Message-ID: <1990Oct6.030223.10558@murdoch.acc.Virginia.EDU> Date: 6 Oct 90 03:02:23 GMT References: <5429@bdt.UUCP> Sender: news@murdoch.acc.Virginia.EDU Organization: Department of Astronomy, University of Virginia Lines: 18 In article roeder@robin.cs.uni-sb.de (Edgar &) writes: >In article <5429@bdt.UUCP> ADAM_TILGHMAN@bdt.UUCP writes: > >> I can't find the current DTA address; is there any way that I can >> do this while processing a TRAP #1? > >The current process' DTA address is recorded in the basepage which can >be derived from the act_pd system variable (this in turn is recorded >in the sys_base (the first few bytes after the ROM-start) for TOS >versions >= 1.2). But I thought this is an "unofficial" way of finding the DTA, so it may break someday. Watching all SETDTA traps, on the other hand, will always work. -- "Restraint, hell. I'm just too fucking busy." -- Bill Wisner