Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Option Key and Amanda's Solutions Message-ID: <32889@ucbvax.BERKELEY.EDU> Date: 30 Nov 89 06:39:24 GMT References: Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Distribution: comp Organization: School of Education, UC-Berkeley Lines: 15 Pete's patch of KeyTrans is incorrect because it references global variables without saving and restoring A5. It crashes early because the debugger calls KeyTrans(), A5 is not what the application expects, and it does a CallPascal of a bogus address. Do not use THINK C's SetUpA5 and restoreA5, they are not safe in a multfinder environment. You can make a safe SetUpA5, RestoreA5 pair by cloning the file SetUpA4.h and replacing all occurences of A4 with A5. Remember to do a RememberA5() before you patch the trap. > The mac is a detour in the inevitable march of mediocre computers. > drs@bnlux0.bnl.gov (David R. Stampf) --- David Phillip Oster -master of the ad hoc odd hack. Arpa: oster@dewey.soe.berkeley.edu Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu