delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/06/07:18:25

From: Airhead Zoom <airhead_zoom AT hetnet DOT nl>
X-Priority: Normal
To: djgpp AT delorie DOT com
Subject: Re:
X-Mailer: Pronto Pro [ver 1.00 (0225)Trio]
Mime-Version: 1.0
Message-ID: <068a61614120639NET014S@hetnet.nl>
Date: 6 Mar 1999 13:14:17 +0100
Reply-To: djgpp AT delorie DOT com

This worked for me:

uchar setwinpos (char whichwin, uint winpos)
{
    union REGS regs;

    regs.h.ah = 0x4F;              /* Vesa BIOS */
    regs.h.al = 0x05;              /* Func 5: Memory window control */
    regs.h.bh = 0x00;              /* Set window position */
    regs.h.bl = !(!whichwin);      /* Window A (0) or window B (1)*/
    regs.x.dx = winpos;            /* Window position in granularity units */

    int86 (0x0010, &regs, &regs);

    if (regs.h.al != 0x004F)       /* Function not supported */
    {
        return (1);                /* Non-zero is errorcode */
    }
    return (regs.h.ah);            /* If not 0, errorcode from BIOS */
}

Hope ya can use it!


Greetz,

Airhead Zoom of Dancing Pumpkin Productions

- Raw text -


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