delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/17/06:28:08

Date: Wed, 17 Feb 1999 13:25:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Airhead Zoom <airhead_zoom AT hetnet DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: Interrupt problems
In-Reply-To: <0b9844705101129NET015S@hetnet.nl>
Message-ID: <Pine.SUN.3.91.990217131516.7038B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On 17 Feb 1999, Airhead Zoom wrote:

> I know there's a function called __dpmi_set_protected_mode_interrupt_vector, 
> located in DPMI.H.
> This function accepts a vector and a __dpmi_paddr. (structure with offset32 and 
> selector)
> How can I request the offset32 and selector of a function?

Did you read section 18.9 of the DJGPP FAQ list (v2/faq211b.zip from the 
same place you got DJGPP)?  It is supposed to explain all these issues 
and answer questions like these.

If the FAQ is somehow not clear, please ask specific questions.

> And how can I call the old function that was in the vector before I overwrote 
> it? 

One way is to use `ljmp' instruction in inline assembly.

- Raw text -


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