Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mailrus!ames!pasteur!cory.Berkeley.EDU!fadden From: fadden@cory.Berkeley.EDU (Andy McFadden) Newsgroups: comp.sys.apple Subject: Re: Ending a SYS file Summary: Ahem Message-ID: <22086@pasteur.Berkeley.EDU> Date: 14 Feb 90 09:03:36 GMT References: <90044.234706ART100@psuvm.psu.edu> Sender: news@pasteur.Berkeley.EDU Reply-To: fadden@cory.Berkeley.EDU.UUCP (Andy McFadden) Organization: University of California, Berkeley Lines: 25 In article <90044.234706ART100@psuvm.psu.edu> ART100@psuvm.psu.edu (Andy Tefft) writes: [snip] >I need to know how to end the thing. The simplest way to code would >be to do a prodos bye, but the simplest way to use would be if it >could just go ahead and execute another system file (which i will know, >of course, and be able to assemble in there). How can I do either of >these? Executing a ProDOS bye: 1) Call the MLI "bye" command. (sorry :-) ) [ 300:20 0 bf 4 65 0 0 0 0 n300g ...I think... ] Executing another system file: 1) Read the file into memory at $2000 2) jmp $2000 The read routine isn't hard to code... just do a GET_EOF on the file and then do a READ for that number of bytes. Add a few OPENs and CLOSEs, and you're all set. >Andy Tefft art100@psuvm.psu.edu -- fadden@cory.berkeley.edu (Andy McFadden) ...!ucbvax!cory!fadden