Mail Archives: djgpp/2000/06/14/17:48:14
Hello.
Prashant TR wrote:
> I'm not sure since I haven't written such code in AT&T style
> before. But I think this should do it:
>
> lcall _oldtimer # possibly this is equivalent to
> # call fword ptr [_oldtimer]?
[snip]
> > My selector and offset value are put in variables:
> > __dpmi_paddr oldtimer;
> > oldtimer.selector;
> > oldtimer.offset32;
Since oldtimer is an absolute address, you need:
lcall *_oldtimer
However, IIRC this will not compile with binutils 2.8.1. If you need the
code to be compatible with binutils 2.9.5.1 beta and 2.8.1, then omit the
asterisk (*). This syntax correction between 2.8.1 and 2.9.5.1 beta is a
PITA.
Bye,
--
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]
- Raw text -