Date: Sat, 21 Oct 2000 08:52:12 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "chimin" Message-Id: <3405-Sat21Oct2000085211+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.5h CC: djgpp AT delorie DOT com In-reply-to: <39f111ec.0@news.tm.net.my> (chiminng@hotmail.com) Subject: Re: Calling Old Interrupt References: <39f111ec DOT 0 AT news DOT tm DOT net DOT my> 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: "chimin" > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 21 Oct 2000 11:48:07 +0800 > > Interrupt start > My code > Call the old interrupt > My code > Interrupt end I think you need to use inline assembly like this: __asm__ __volatile__ ("lcall %cs:*_old_int"); where `old_int' is the variable declared "__dpmi_paddr old int;", in which you saved the old interrupt handler address.