delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/08/19:05:07

Date: Mon, 8 Feb 1999 19:04:47 -0500
Message-Id: <199902090004.TAA15310@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <79nj9q$41pu$1@news-inn.inet.tele.dk> (98zOLaw@aalborghus.dk)
Subject: Re: How to check the carry flag?
References: <79nj9q$41pu$1 AT news-inn DOT inet DOT tele DOT dk>
Reply-To: djgpp AT delorie DOT com

> I have just tried to launch my first interrupt with __djgpp_int(...). It
> works great, but how do you check the carry flag (which is set by the
> interrupt to indicate success and failure) in __dpmi_regs.flags? I guess
> there are some #defined values, but I wasn't capable of finding them in the
> 'dpmi.h'eader.

if (__dpmi_regs.flags & 1) {
  /* carry flag set */
}

The flags field is defined by the Intel specs - it matches the eflags
register format.

- Raw text -


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