delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/29/15:43:03

Date: Mon, 29 Mar 1999 15:42:57 -0500
Message-Id: <199903292042.PAA07944@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <NABBKDNBEOKOCFKNJILIOEMBDGAA.marku@magnet.at>
Subject: Re: Tricky interrupt problem
References: <NABBKDNBEOKOCFKNJILIOEMBDGAA DOT marku AT 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

> I have realised that I am going to have to declare two small buffers
> in conventional memory to make this work.

The transfer buffer is *already* allocated for you, just for this
purpose.

> I am now getting stuck getting the address back for the buffer I
> have created to transfer to ds, dx.

#include <go32.h>
regs.ds = __tb >> 4;
regs.dx = __tb & 15;
dosmemput(buffer, length, __tb);
__dpmi_int(0x21, &regs);

- Raw text -


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