Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!husc6!m2c!wpi!greyelf From: greyelf@wpi.wpi.edu (Michael J Pender) Newsgroups: comp.sys.apple Subject: Re: Reset Vectors Message-ID: <4561@wpi.wpi.edu> Date: 6 Oct 89 21:56:17 GMT References: <6483@latcs1.oz> Reply-To: greyelf@wpi.wpi.edu (Michael J Pender) Organization: Worcester Polytechnic Institute, Worcester, MA. USA Lines: 35 In article <6483@latcs1.oz> stephens@latcs1.oz (Philip J. Stephens) writes: >In article , davidbrierley@lynx.northeastern.edu writes: >> >> Could anyone tell me how to deactivate the reset key (i.e. >> causing the program to resume when it is interrupted by reset) and >> to cause a branch to another part of a program when reset is pressed. >> >> David R. Brierley >> davidbrierley@lynx.northeastern.edu > >Applesoft BASIC reference manual is _WRONG_. You cannot achieve what it says >you can do without possibly crashing the Applesoft interpretor. > >+-----------------------------------------------+ >| Philip J. Stephens | >| Computer Science III, LaTrobe Uni., Melbourne | >| ACSnet: stephens@latcs1.oz | >+-----------------------------------------------+ *ahem* I beg to differ. Under prodos the reset key will make its jump to a machine language routine, yes, but an article in a past episode of Nibble showed a way to have the machine generate an Applesoft error code, and return to the BASIC interpreter. If a person had set error trapping, ie. used an ONERR GOTO statement, they can redirect the control where they will. I suppose I should go and try to dig the article up now... --- Michael J Pender Jr Box 1942 c/o W.P.I. I wrote SHELL and Daemon, greyelf@wpi.bitnet 100 Institute Rd. send bug reports, suggestions, greyelf@wpi.wpi.edu Worcester, Ma 01609 checks to me.