Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!mips!apple!dlyons From: dlyons@Apple.COM (David A. Lyons) Newsgroups: comp.sys.apple Subject: Re: Ending a SYS file Message-ID: <38653@apple.Apple.COM> Date: 14 Feb 90 22:15:40 GMT References: <90044.234706ART100@psuvm.psu.edu> <22086@pasteur.Berkeley.EDU> <1990Feb14.203730.1970@ux1.cso.uiuc.edu> Organization: Apple Computer Inc, Cupertino, CA Lines: 23 In article <1990Feb14.203730.1970@ux1.cso.uiuc.edu> cs122aw@ux1.cso.uiuc.edu (Scott Alfter) writes: >[...] >This will dump you into the quit code. If you put it in assembly language, it >looks like this: > >MLI EQU $BF00 ;Entry to ProDOS MLI > JSR MLI ;Call the MLI > DFB $65 ;QUIT > DA PARMS ;Address of parameter table >PARMS HEX 04 ;Parameter table for QUIT: 4 nulls > HEX 00000000 Technically, you're supposed to have SIX bytes of $00 in the parameter list, not just 4. (The 4 is the correct count, but two of the parameters are defined as two-byte values, for a total of 6.) -- David A. Lyons, Apple Computer, Inc. | DAL Systems Apple II Developer Technical Support | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.