delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/06/14:20:21

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" <eliz AT is DOT elta DOT co DOT il>
CC: djgpp AT delorie DOT com
In-reply-to: <Pine.GSO.4.20.0008061113060.4908-100000@toliman.cc.umanitoba.ca>
(message from Adam Majer on Sun, 6 Aug 2000 11:14:54 -0500)
Subject: Re: How to call a far code segment
References: <Pine DOT GSO DOT 4 DOT 20 DOT 0008061113060 DOT 4908-100000 AT toliman DOT cc DOT umanitoba DOT ca>
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

> From: Adam Majer <ummajera AT cc DOT UManitoba DOT CA>
> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019