Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!amdcad!decwrl!sqm.dec.com!jmsynge From: jmsynge@sqm.dec.com (James M Synge, DTN 381-1545) Newsgroups: comp.sys.amiga Subject: Re: Dos library/SetFunction() question Message-ID: <9792@decwrl.DEC.COM> Date: Sat, 9-May-87 17:44:39 EDT Article-I.D.: decwrl.9792 Posted: Sat May 9 17:44:39 1987 Date-Received: Sun, 10-May-87 06:05:17 EDT Sender: daemon@decwrl.DEC.COM Organization: Digital Equipment Corporation Lines: 26 inria!rouaix writes: > BUT: for dos.library the vector table looks like: > MOVEQ #x,d0 > BRA entry_point > (repeated) > where the code at entry_point is doing some standard stack manipulations, > and then computes some address from x and goes to it. > My question is: how can you use SetFunction on dos.library ?? SetFunction can NOT be used on dos.library! If you wish to do this, you need to determine the address to which the BRA jumps to, record this, then insert your own JMP YOUR_ROUTINE in the jump table (not just the address as does SetFunction), set the appropriate flag in the Library lib_Flags field, then set your routine so it prepares D0 correctly and JMPs to the location which you determined earlier. Bon chance, James Synge USENET: {decvax, ucbvax, allegra}!decwrl!sqm.dec.com!jmsynge ARPAnet: jmsynge%sqm.DEC@decwrl.DEC.COM #include "Ken Olsen can speak for Digital, not me!"