Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 8/21/84; site styx.UUCP Path: utzoo!linus!philabs!prls!amdimage!amdcad!decwrl!sun!idi!styx!jlt From: jlt@styx.UUCP (John L. Thomas) Newsgroups: net.micro Subject: Re: Re: DOS EXEC FUNCTION CALL Message-ID: <11416@styx.UUCP> Date: Fri, 6-Sep-85 13:18:39 EDT Article-I.D.: styx.11416 Posted: Fri Sep 6 13:18:39 1985 Date-Received: Tue, 10-Sep-85 08:24:31 EDT References: <1267@brl-tgr.ARPA> Organization: Lawrence Livermore Laboratory, Livermore, CA Lines: 21 > when you return back to TURBO all your stack and data is garbage. The > solution is to push all your necessary registers and then save the SS > and SP in a location in your code segment. Just to clear up a ?minor? point of confusion: How could the return from interrupt have happened if the SS:SP is garbage? In fact, the restoration of CS:IP comes from the return, which requires that SS:SP be correct. John -- ARPA jlt@styx UUCP ...!seismo!lognet2!styx!jlt Deathstar (415) 423-6029 SNail John L. Thomas MS-L275 POB 808 Livermore, CA 94550 * * * I deny that the preceeding has any relation to reality. * * *