delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/26/01:42:53

Date: Thu, 26 Dec 1996 08:16:46 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Tony O'Bryan" <aho450s AT nic DOT smsu DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Value of segment registers
In-Reply-To: <32bd7ebf.26376983@ursa.smsu.edu>
Message-ID: <Pine.SUN.3.91.961226075851.6244B-100000@is>
MIME-Version: 1.0

On Mon, 23 Dec 1996, Tony O'Bryan wrote:

> unsigned short Glad::GetVesaVersionNumber(void)
>   {
>   unsigned short	Buffer[128];
>   union Regs		Regs;
> 
>   Regs.x.ax = 0x4f00;
>   Regs.x.di = &Buffer; 		//This generates a warning,
>   int86(0x10,&Regs,&Regs);
>   return Buffer[2];
>   }

`int86' only supports a few functions of Int 21h that need pointers to 
buffers.  You should really use `__dpmi_int' for any buffer-based 
functions.  For details, see sections 18.1-18.4 of the DJGPP FAQ list 
(avialable as v2/faq202b.zip from the same place you get DJGPP).

- Raw text -


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