Date: Thu, 26 Dec 1996 08:16:46 +0200 (IST) From: Eli Zaretskii To: "Tony O'Bryan" cc: djgpp AT delorie DOT com Subject: Re: Value of segment registers In-Reply-To: <32bd7ebf.26376983@ursa.smsu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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).