www.delorie.com/djgpp/doc/libc/libc_487.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

int86x

Syntax

 
#include <dos.h>

int int86x(int ivec, union REGS *in, union REGS *out,
           struct SREGS *seg);

Description

The struct SREGS is defined by <dos.h> as follows:

 
struct SREGS {
  unsigned short es;
  unsigned short ds;
  unsigned short fs;
  unsigned short gs;
  unsigned short cs;
  unsigned short ss;
};

This function is just like int86 (see section int86) except that values you pass in seg are used for the segment registers instead of the defaults.

See also int86, intdos, and bdos.

Return Value

The value of EAX is returned.

Portability

ANSI/ISO C No
POSIX No

Example

 
union REGS r;
struct SREGS s;
r.h.ah = 0x31;
r.h.dl = 'c';
r.x.si = si_val;
s.ds = ds_val;
int86x(0x21, &r, &r, &s);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004