home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
c
/
jazlib.arc
/
JZPGECLR.C
< prev
next >
Wrap
Text File
|
1986-05-06
|
629b
|
22 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzpgeclr.c │
│Clear the specified page with the specified attribute │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
jzpgeclr(fpage,fattr)
int fpage,fattr;
{
int far *screen = (int far *) 0xb8000000;
register wcharattr,w;
wcharattr = fattr << 8 + 0x20; /* space char with specified attribute*/
screen += fpage * 2048;
for (w = 0 ; w < 2000 ; w ++) *screen ++ = wcharattr;
}