-=- Getting Fixups into Your Data Segment ??? -=- 
Author Message
 -=- Getting Fixups into Your Data Segment ??? -=-

hey,
  is there any way to specify to any known assembler to
arbitrarily do a segment fixup on a word in your program?
what i want to do is basically have:

psp     dw      <initial value of es>

which is set by dos at load.  i know i could use a coupla
lines of code to do this but i don't have to.

-hr



Sat, 23 Aug 1997 04:25:23 GMT  
 -=- Getting Fixups into Your Data Segment ??? -=-


Quote:
>hey,
>  is there any way to specify to any known assembler to
>arbitrarily do a segment fixup on a word in your program?
>what i want to do is basically have:

>psp dw      <initial value of es>

>which is set by dos at load.  i know i could use a coupla
>lines of code to do this but i don't have to.

If (by looking in the .MAP file for your program) you know the name of
the first segment/group in your program (say it's PGROUP), then use

PSP     dw      (seg PGROUP)-10h

This method is subject to non-obvious errors if you re-order segments
later on.  I advise against it.

----------------------------------



Sat, 23 Aug 1997 10:31:00 GMT  
 -=- Getting Fixups into Your Data Segment ??? -=-

Quote:



>>hey,
>>  is there any way to specify to any known assembler to
>>arbitrarily do a segment fixup on a word in your program?
>>what i want to do is basically have:

>>psp     dw      <initial value of es>

>>which is set by dos at load.  i know i could use a coupla
>>lines of code to do this but i don't have to.
>If (by looking in the .MAP file for your program) you know the name of
>the first segment/group in your program (say it's PGROUP), then use
>PSP dw      (seg PGROUP)-10h
>This method is subject to non-obvious errors if you re-order segments
>later on.  I advise against it.

yeah,
  this is the same thing i came up with when i thought about it
some more.  thanks

-hr



Mon, 25 Aug 1997 04:01:40 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. -=- Getting Fixups into Your Data Segment ??? -=-

2. Fixups with >64k segments

3. data segment vs code segment

4. need help getting segment address in TSR

5. pmode prob setting up 4G data segment...

6. "data segment" in bootable program

7. "data segment" missing

8. DS and data segment question.

9. Help! Data Segment problems

10. Problem with DATA segment labels

11. get the address of a data segment

12. multiple far data segments?

 

 
Powered by phpBB® Forum Software