delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/29/12:47:31

Date: Mon, 29 Mar 1999 12:47:14 -0500
Message-Id: <199903291747.MAA06798@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <7do9p8$a7j$1@orudios.magnet.at> (marku@magnet.at)
Subject: Re: Tricky interrupt problem
References: <7do9p8$a7j$1 AT orudios DOT magnet DOT at>
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Using __dpmi_int is OK, but the trick is to point DS:DX at the 16-bit
"transfer buffer" that djgpp uses to talk with DOS.  You fill the
transfer buffer with data, set up DS:DX to point to it, call the
interrupt, and then copy the new data back.

The libc sources have lots of examples of using the transfer buffer.

- Raw text -


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