Mail Archives: djgpp/1996/12/26/01:42:53
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 -