Path: utzoo!attcan!uunet!dino!ux1.cso.uiuc.edu!cs122aw From: cs122aw@ux1.cso.uiuc.edu (Scott Alfter) Newsgroups: comp.sys.apple Subject: Re: Ending a SYS file Message-ID: <1990Feb14.203730.1970@ux1.cso.uiuc.edu> Date: 14 Feb 90 20:37:30 GMT References: <90044.234706ART100@psuvm.psu.edu> <22086@pasteur.Berkeley.EDU> Organization: University of Illinois at Urbana Lines: 28 In article <22086@pasteur.Berkeley.EDU> fadden@cory.Berkeley.EDU.UUCP (Andy McFadden) writes: >Executing a ProDOS bye: >1) Call the MLI "bye" command. (sorry :-) ) >[ 300:20 0 bf 4 65 0 0 0 0 n300g ...I think... ] Just a little off. When the system bombs on me (not often, unlike the Mac), I give this incantation from the Monitor: 300:20 0 BF 65 10 3 N 310:4 0 0 0 0 N 300G 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 (The above source will work for Big Mac or Merlin. A different assembler will take different pseudo-ops. But you already knew that, right? :-) ) Scott Alfter------------------------------------------------------------------- Internet: cs122aw@ux1.cso.uiuc.edu _/_ Apple IIe: the power to be your best! alfter@mrcnext.cso.uiuc.edu/ v \ saa33413@uxa.cso.uiuc.edu ( ( A keyboard--how quaint! Bitnet: free0066@uiucvmd.bitnet \_^_/ --M. Scott, STIV