Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!xanth!nic.MR.NET!umn-cs!umn-d-ub!gandreas From: gandreas@umn-d-ub.D.UMN.EDU (Glenn Andreas) Newsgroups: comp.sys.mac.programmer Subject: Re: Standard File Question Message-ID: <1101@umn-d-ub.D.UMN.EDU> Date: 12 Jun 89 13:49:43 GMT References: <5739@hubcap.clemson.edu> Reply-To: gandreas@ub.d.umn.edu.UUCP (Glenn Andreas) Organization: University of Minnesota, Duluth Lines: 22 In article <5739@hubcap.clemson.edu> mikeoro@hubcap.clemson.edu (Michael K O'Rourke) writes: >IM-4 and a Technote state that the global variables SFSaveDisk and CurDirSTore >contain the negative of the volume reference number and the directory id of >what standard file is currently looking at. > >I tried acessing these variables using the locations given in the technote, but >they always give me the same values of 532 and 920. These values are the >same when i am in or out of the calls. > 532 happens to be the address of SFSaveDisk. 920 is probably the address of CurDirStore (it's not in the back of Knaster, and I didn't bother to look through the MPW assembler equates). What you need is to do is look at the word (or long word) stored there. Remember, with the exception of Quickdraw "globals", globals are low memory locations. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= = "Whether you like it, or don't like it, sit | - gandreas@ub.d.umn.edu - = = back and take a look at it, because it's the | Glenn Andreas = = best going today! WOOOOoooo!" - Ric Flair | = =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=