Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #642

Re: Borlands Tasm5 and data in a DLL

From Ross Ridge <rridge@csclub.uwaterloo.ca>
Newsgroups comp.os.msdos.programmer
Subject Re: Borlands Tasm5 and data in a DLL
Date 2012-06-13 13:03 -0400
Organization University of Waterloo
Message-ID <jrah5p$die$1@rumours.uwaterloo.ca> (permalink)
References <4fd6504d$0$6942$e4fe514c@news2.news.xs4all.nl> <jr8hc3$u8o$1@rumours.uwaterloo.ca> <4fd850e9$0$6844$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


R.Wieser <address@not.available> wrote:
>Are you sure ?   In my example-code I had to use a "+WORD" in the first line
>(to skip the FF 25  (a jump command ) preceeding the actual address).  How
>come you do not need it ?

Because my example code bypasses that extra level of indireciton.
The import library that you link your assembler code implements the
import linkage with something like this:

		PUBLIC	MyData,__imp_MyData

		SEGMENT	.text
	MyData:
		jmp	[__imp_MyData]
		ENDS

		SEGMENT	.idata$5
	__imp_MyData DD	?
		ENDS

It's the __imp_MyData variable that gets fixed up by Windows to point at
the correct address, not the jump instruction.  You don't need to use
the jump instruction to find this variable, just use the __imp_MyData
label access it directly instead.

					Ross Ridge

-- 
 l/  //	  Ross Ridge -- The Great HTMU
[oo][oo]  rridge@csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/~rridge/ 
 db  //	  

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Borlands Tasm5 and data in a DLL "R.Wieser" <address@not.available> - 2012-06-11 22:10 +0200
  Re: Borlands Tasm5 and data in a DLL JJ <jaejunks_at@_googlemail_dot._com> - 2012-06-12 16:54 +0000
    Re: Borlands Tasm5 and data in a DLL "R.Wieser" <address@not.available> - 2012-06-12 19:54 +0200
      Re: Borlands Tasm5 and data in a DLL JJ <jaejunks_at@_googlemail_dot._com> - 2012-06-13 00:14 +0000
        Re: Borlands Tasm5 and data in a DLL "R.Wieser" <address@not.available> - 2012-06-13 10:54 +0200
  Re: Borlands Tasm5 and data in a DLL JJ <jaejunks_at@_googlemail_dot._com> - 2012-06-12 16:57 +0000
  Re: Borlands Tasm5 and data in a DLL Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-06-12 18:54 -0400
    Re: Borlands Tasm5 and data in a DLL "R.Wieser" <address@not.available> - 2012-06-13 10:37 +0200
      Re: Borlands Tasm5 and data in a DLL Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-06-13 13:03 -0400
        Re: Borlands Tasm5 and data in a DLL "R.Wieser" <address@not.available> - 2012-06-14 09:30 +0200
          Re: Borlands Tasm5 and data in a DLL Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-06-14 11:55 -0400
            Re: Borlands Tasm5 and data in a DLL "R.Wieser" <address@not.available> - 2012-06-14 21:49 +0200
              Re: Borlands Tasm5 and data in a DLL Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-06-14 16:21 -0400
                Re: Borlands Tasm5 and data in a DLL "R.Wieser" <address@not.available> - 2012-06-15 12:18 +0200
                Re: Borlands Tasm5 and data in a DLL rugxulo@gmail.com - 2012-06-19 18:27 -0700

csiph-web