Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!emory!utkcs2!andrew From: andrew@cs.utk.edu (Andrew Krzywdzinski) Newsgroups: comp.sys.atari.st.tech Subject: Re: Location of variables in executable files. Message-ID: <1990Nov13.144721.21402@cs.utk.edu> Date: 13 Nov 90 14:47:21 GMT References: <1990Nov11.013428.4566@cs.utk.edu> <2737@atari.UUCP> Sender: news@cs.utk.edu (USENET News System) Organization: Univ of TN, Knoxville - CS Department Lines: 12 I was thinking (erroneously) that Getmpb would tell me where the program being executed starts in memory, so that I can match the location of the variable in the "self modifying" program and on the disk. Now that I've learned more about the format of the executable files, I know better. The suggestion I received was to look at the initialized data segment, and look for my magic number. This sounds like it might work, but seems like a bit of a hack. I suppose there is no better way of doing it, so I'll try it the hack-way. Thanks to all who responded to my query, I appreciate it very much. -andrew krzywdzinski (andrew@cs.utk.edu)