Message-Id: <200008061820.OAA02138@delorie.com> Date: Sun, 06 Aug 2000 20:23:18 +0200 To: ummajera AT cc DOT UManitoba DOT CA X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b From: "Eli Zaretskii" CC: djgpp AT delorie DOT com In-reply-to: (message from Adam Majer on Sun, 6 Aug 2000 11:14:54 -0500) Subject: Re: How to call a far code segment References: 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 > From: Adam Majer > Newsgroups: comp.os.msdos.djgpp > Date: Sun, 6 Aug 2000 11:14:54 -0500 > > How can I call a far code segment? ie. something like ES:EDI? I need this > for the protected mode interface to the hardware. You didn't provide enough details. Is the code you want to call protected-mode code or real-mode code? 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.