delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/07/12:22:52

Date: Tue, 7 Mar 2000 10:15:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Campbell, Rolf [SKY:1U32:EXCH]" <moscoop AT americasm01 DOT nt DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Inline asm
In-Reply-To: <38C3EE52.EC9DC2A9@americasm01.nt.com>
Message-ID: <Pine.SUN.3.91.1000307101530.21628D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 6 Mar 2000, Campbell, Rolf [SKY:1U32:EXCH] wrote:

> __dpmi_regs regs;
> memset(&regs, 0, sizeof(regs));  //I think this is optional for this
> specific example
> regs.x.ax = 0x13;
> __dmpi_int(0x10, &regs);

It is not necessary to zero-out regs when using __dpmi_int, since
__dpmi_int zeroes out the parts that need that.

- Raw text -


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