From: Adam Majer Newsgroups: comp.os.msdos.djgpp Subject: Re: How to call a far code segment Date: Tue, 8 Aug 2000 09:09:31 -0500 Organization: The University of Manitoba Lines: 15 Message-ID: References: <200008061820 DOT OAA02138 AT delorie DOT com> NNTP-Posting-Host: merak.cc.umanitoba.ca Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: canopus.cc.umanitoba.ca 965743772 15689 130.179.16.10 (8 Aug 2000 14:09:32 GMT) X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca NNTP-Posting-Date: 8 Aug 2000 14:09:32 GMT In-Reply-To: <200008061820.OAA02138@delorie.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 6 Aug 2000, Eli Zaretskii wrote: > > How can I call a far code segment? ie. something like ES:EDI? I need this > > for the protected mode interface to the hardware. > > If the former, use the "lcall" instruction, it accepts a selector and > an offset. If the latter, use the library function > __dpmi_simulate_real_mode_procedure_retf. It is actually the lcall I was looking for. Thanks. :) Sincerely, Adam