Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!iuvax!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!cs225af From: cs225af@ux1.cso.uiuc.edu Newsgroups: comp.sys.apple Subject: Re: Error reporting under Prodos 8. Message-ID: <15800070@ux1.cso.uiuc.edu> Date: 13 Feb 90 07:29:00 GMT References: <8190@wpi.wpi.edu> Lines: 20 Nf-ID: #R:wpi.wpi.edu:8190:ux1.cso.uiuc.edu:15800070:000:553 Nf-From: ux1.cso.uiuc.edu!cs225af Feb 13 01:29:00 1990 If you just need to send an error back to an Applesoft BASIC program, to be trapped by an ONERR GOTO routine: LDX #err JMP $D412 will do the trick. It calls the routine Applesoft uses to generate its own errors. Set the error code to whatever you want, and your ONERR GOTO can check for it w/ PEEK (222). Also: JMP $DD76 generates a ?TYPE MISMATCH ERROR JMP $DEC9 generates a ?SYNTAX ERROR all this may not be too clean, but under Applesoft it works like a charm. If this isn't what you were asking, just ignore all the above. =) -- rubio