[comp.sys.atari.st] terminating a TSR

cstein@jarthur.Claremont.EDU (Clifford Stein) (02/17/90)

I'm writing a TSR application which installs itself using the scrdump vector
found at location $502.  The program seems to run correctly, although some
of the XBIOS calls I make don't (such as changing the resolution and colors.)

My program will not terminate properly, though.  How should it end?
I've tried Ptermres(), RTS and an RTE.
My program is making some XBIOS calls, and using some ALINE routines.
What should I not do in this program? (i.e. what is, or is not, "legal")
How can I get it to terminate?  I've gotten 3-bomb crashes, other times the
computer just locks up, depending on how it ends.  What's wrong?

Thanks for any help.


		---Clifford Stein
-- 
cstein@jarthur.claremont.edu  |   "Cops and women don't mix.  It's like 
cstein@jarthur.uucp	      |   eating a spoonful of Draino: sure it'll
...uunet!jarthur!cstein	      |   clean you out, but it'll leave you 
cstein@hmcvax.bitnet          |   feeling hollow inside."-- Naked Gun