Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site hou2g.UUCP Path: utzoo!linus!philabs!cmcl2!floyd!harpo!eagle!mhuxl!houxm!hou2g!stekas From: stekas@hou2g.UUCP Newsgroups: net.micro.pc Subject: IBM-PC Loading problem. Message-ID: <122@hou2g.UUCP> Date: Fri, 2-Dec-83 13:44:53 EST Article-I.D.: hou2g.122 Posted: Fri Dec 2 13:44:53 1983 Date-Received: Sun, 4-Dec-83 02:48:25 EST Organization: Bell Labs, Holmdel NJ Lines: 17 I've written a BASIC callable assembler routine for the PC which I've tried to keep "relocatable". To do this I one simply has to take care to reference other segments *relative* to the code segment of the entry point. The trouble is that I have hade to resort to ugly hacks to get the loader to control the relative locations of data and code segments. I've tried GROUPS, different segment typing and naming conventions and nothing seems to work. Even when I explicitly define the location of a segment the loader puts it wherever it wants it. (The manual *does* say that you can't force a segment's location this way. Has anyone else dealt with this problem? Anyone know how it's "supposed" to be done? I'm using the loader that comes with DOS 2.0 and the IBM Macro assembler. Thanks for any help, Jim (..!hou2g!stekas)