delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/02/21/18:47:19

Date: Fri, 21 Feb 2003 23:49:44 +0000
From: "Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk>
Sender: rich AT phekda DOT freeserve DOT co DOT uk
To: djgpp-workers AT delorie DOT com
X-Mailer: Emacs 21.3.50 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
Subject: int86x doesn't document struct SREGS [PATCH]
Message-Id: <E18mMso-0001EX-00@phekda.freeserve.co.uk>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Below is a patch to document struct SREGS in the int86x page.
OK to commit?

Thanks, bye, Rich =]

Index: src/libc/dos/dos/bdos.txh
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/dos/dos/bdos.txh,v
retrieving revision 1.7
diff -p -c -3 -r1.7 bdos.txh
*** src/libc/dos/dos/bdos.txh	7 Feb 2003 18:13:53 -0000	1.7
--- src/libc/dos/dos/bdos.txh	21 Feb 2003 23:46:18 -0000
*************** The returned value of @code{EAX}.
*** 266,271 ****
--- 266,272 ----
  @c ----------------------------------------------------------------------
  @node int86x, dos
  @findex int86x
+ @tindex SREGS AT r{ structure}
  @subheading Syntax
  
  @example
*************** int int86x(int ivec, union REGS *in, uni
*** 277,284 ****
  
  @subheading Description
  
  This function is just like @code{int86} (@pxref{int86}) except that
! values you pass in @var{SREGS} are used for the segment registers instead
  of the defaults.
  
  See also @ref{int86}, @ref{intdos}, and @ref{bdos}.
--- 278,298 ----
  
  @subheading Description
  
+ The @code{struct SREGS} is defined by @code{<dos.h>} as follows:
+ 
+ @example
+ struct SREGS @{
+   unsigned short es;
+   unsigned short ds;
+   unsigned short fs;
+   unsigned short gs;
+   unsigned short cs;
+   unsigned short ss;
+ @};
+ @end example
+ 
  This function is just like @code{int86} (@pxref{int86}) except that
! values you pass in @var{seg} are used for the segment registers instead
  of the defaults.
  
  See also @ref{int86}, @ref{intdos}, and @ref{bdos}.

- Raw text -


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