Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!clyde!burl!codas!killer!jockc From: jockc@killer.UUCP (Jock Cooper) Newsgroups: comp.sys.apple Subject: Re: Quitting my own application Message-ID: <1740@killer.UUCP> Date: Mon, 5-Oct-87 17:28:05 EDT Article-I.D.: killer.1740 Posted: Mon Oct 5 17:28:05 1987 Date-Received: Fri, 9-Oct-87 05:11:33 EDT References: <1311@bgsuvax.UUCP> Organization: The Unix(R) Connection, Dallas, Texas Lines: 22 In article <1311@bgsuvax.UUCP>, denbeste@bgsuvax.UUCP (William C. DenBesten) writes: > I am unable to exit a prodos application that I am writing. When I execute > the following prodos trap, it dumps me at an applesoft prompt, rather than > putting up the default program exit routine. > > 300: 20 00 bf ; jsr MLI > 303: 65 ; quit-code > 304: 08 03 ; exit-parameters I believe that I once encountered this behavior. (It has been awhile since I wrote 6502 assy, so bear with me). I think I ended up calling the system death code directly. The address of the system death (quit) code is stored somewhere in the ProDOS global page. If you have a copy of Beneath Apple ProDOS (Quality Software), you can find out the global page location that contains the quit code address and JMP to it. If you don't have the book (or access to one) I will check tonight and post the info tomorrow. ---------------------------+ jockc / ihnp4!killer!jockc | ---------------------------+