From: Airhead Zoom X-Priority: Normal Content-Type: text/plain To: djgpp AT delorie DOT com Subject: Re: X-Mailer: Pronto Pro [ver 1.00 (0225)Trio] Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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, ®s, ®s); 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