Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!bbn!oberon!ll-xn!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!its63b!hwcs!neil From: neil@hwcs.UUCP Newsgroups: comp.sys.atari.st Subject: The Ultimate in Pexec? Message-ID: <1461@brahma.cs.hw.ac.uk> Date: Thu, 1-Oct-87 09:21:41 EDT Article-I.D.: brahma.1461 Posted: Thu Oct 1 09:21:41 1987 Date-Received: Sun, 4-Oct-87 01:46:20 EDT Organization: Computer Science, Heriot-Watt U., Scotland Lines: 26 Keywords: Restoring Default Vectors Here is a teaser: Suppose I write a program that needs an immense amount of ram (~850K). I compile/assemble & link the beast, but when I try to run it I don't have enough memory due to the accessories & foldrxxx.prg. I could load it at an absolute address and relocate it myself. Lets simplify things a bit and say that it will be a .TOS program so I don't have to worry about GEM and desk accessories. So far so good but here comes the snapper. If any of the already resident programs have grabbed any interrupt/event driven code then when I stamp over it KAPOWW! (as Batman used to say) and bombs all round. So how can I restore the original vectors in an OS independant way? I don't mind having to reboot after I have finished using the program all I want is to run the thing. ------------------------------------------------------------------------------- "I think all right thinking people in this country are sick and tired of being told that ordinary decent people are fed up in this country with being sick and tired. I'm certainly not and I'm sick and tired of being told that I am!" - Monty Python Neil Forsyth JANET: neil@uk.ac.hw.cs Dept. of Computer Science ARPA: neil@cs.hw.ac.uk Heriot-Watt University UUCP: ..!ukc!cs.hw.ac.uk!neil Edinburgh Scotland -------------------------------------------------------------------------------