Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!ucsd!ucbvax!TAUNOS.BITNET!L77 From: L77@TAUNOS.BITNET Newsgroups: comp.sys.apple Subject: Re: Ending a SYS file Message-ID: <9002191431.aa13840@SMOKE.BRL.MIL> Date: 18 Feb 90 22:49:40 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 21 > In article <22086@pasteur.Berkeley.EDU> fadden@cory.Berkeley.EDU.UUCP (Andy > McFadden) writes: >>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. >Even easier: Never mind the GET_EOF call; just request $FFFF bytes. >If the read is successful, and it read more than $0000 bytes, there >you have it! ..but then you better watch BEQing upon a successful call,i.e. error code=$00,because the error code for EOF-encountered is NOT $00 (I forget what it IS right now). L77@TAUNOS