1 //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\r
3 //=- Tauron VGA Utilities Version 3.0 -=
\r
4 //=- Released September 20, 1998 -=
\r
6 //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\r
7 //=- Copyright (c) 1997, 1998 by Jeff Morgan =-= This code is FREE provided -=
\r
8 //=- All Rights Reserved. =-= that you put my name some- -=
\r
9 //=- =-= where in your credits. -=
\r
10 //=- DISCLAIMER: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\r
11 //=- I assume no responsibility whatsoever for any effect that this package, -=
\r
12 //=- the information contained therein or the use thereof has on you, your -=
\r
13 //=- sanity, computer, spouse, children, pets or anything else related to -=
\r
14 //=- you or your existance. No warranty is provided nor implied with this -=
\r
15 //=- source code. -=
\r
16 //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\r
23 void TextClear(char attrib)
\r
25 unsigned int bytes = Mode.width_bytes;
\r
41 unsigned int bytes = Mode.width_bytes;
\r
56 unsigned int bytes = Mode.width_bytes;
\r
69 void Clear0DH(char color)
\r
71 unsigned int bytes = Mode.width_bytes/2;
\r
86 XCHG WORD PTR ES:[DI],AX
\r
93 MOV WORD PTR ES:[DI],0FFFFH
\r
107 void PlanarClear(char Color)
\r
109 unsigned int bytes = Mode.width_bytes/2;
\r
124 XCHG WORD PTR ES:[DI],AX
\r
131 MOV WORD PTR ES:[DI],0FFFFH
\r
145 void Clear13H(char Color)
\r
160 void UnchainedClear(char Color)
\r
162 unsigned int bytes = Mode.width_bytes/2;
\r
164 mov dx, 03C4h // 03c4h
\r
165 mov al, 2 // Map Mask Register
\r
168 mov al,00001111B // Select all planes to write to
\r
169 out dx, al // Doing this to clear all planes at once
\r
173 XOR DI,DI // set es:di = Screen Mem
\r
174 mov ah,Color // move the color into ah
\r
175 mov al,ah // copy the value to al
\r
176 mov cx,bytes // Number of words
\r
178 rep stosw // clear it
\r