Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!eos!labrea!decwrl!pyramid!voder!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: OpenResFile and high byte Message-ID: <8227@apple.Apple.Com> Date: 14 Apr 88 00:05:56 GMT References: <128@dogie.edu> <1118@cadre.dsl.PITTSBURGH.EDU> <4367@husc6.harvard.edu> <23596@ucbvax.BERKELEY.EDU> Reply-To: lsr@apple.UUCP (Larry Rosenstein) Organization: Advanced Technology Group, Apple Computer Lines: 15 Keywords: debugger In article <23596@ucbvax.BERKELEY.EDU> oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) writes: > >do a SysEnvirons(). If you are running on a 512KE or greater, and are >under System 4.1 or greater, then do a StripAddress() system call to strip >off the flags and get a pure address. If you are using MPW, StripAddress is implemented by glue code that checks for the existence of the trap, and cals it if it exists. Otherwise it does the stripping itself. Therefore, you can call StripAddress regardless of the machine you are running on. -- Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 27-AJ Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr