Mail Archives: djgpp/1999/02/08/19:05:07
> 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 -