home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │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;
- }
-