Mail Archives: djgpp/2000/05/31/06:30:32
Richard Dawe <richdawe AT bigfoot DOT com> said:
>I took a look at this problem at the weekend and I couldn't find a way to
>avoid this syntax. I tried loading the selector into es and then
>referencing the offset's memory location, like so:
>
>lcall %%es:_myoffset
How about something like this:
__dpmi_paddr entry;
entry.selector = your_selector;
entry.offset = func_offset;
__asm__ __volatile__ (
"lcall (%%edi)"
:: "D" (&entry) );
I've used this in a BIOS32 service module.
Gisle V.
- Raw text -