/* SET_VPAG.C - Select A Video Memory Page Last Modified: 06/11/86 Copyright (C) 1986, T.A. Daneliuk */ #include <t&r.h> #include <dos.h> void set_vpage(page) /* Select a particular video memory page */ char page; { extern unsigned _rax; extern char scr_page; scr_page=page; /* Inform PCIO where we're going */ _rax=0x0500; /* Select video page by ORing into AL */ page=page & 0x03; /* Mask out all but the significant bits */ _rax=_rax | page; _doint(0x10); }