Date: Wed, 17 Feb 1999 13:25:11 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Airhead Zoom cc: djgpp AT delorie DOT com Subject: Re: Interrupt problems In-Reply-To: <0b9844705101129NET015S@hetnet.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.