stekas@hou2g.UUCP (12/02/83)
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)
jph@whuxle.UUCP (12/06/83)
#R:hou2g:-12200:whuxle:22700007:000:304 whuxle!jph Dec 2 21:08:00 1983 How about posting a segment of the code that you are working with. What do you mean by 'relocatable'? The code segment that you are creating can easily reference data that is contained within the code without a lot of 'hacking' from my past experience. A little more explaination is needed on your part.