Date: Wed, 31 May 2000 09:26:00 +0200 (MET DST) From: Gisle Vanem To: djgpp AT delorie DOT com Subject: Re: Inline asm: lcall & various binutils versions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Richard Dawe 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.