Mail Archives: djgpp/1999/03/06/07:18:25
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
- Raw text -