Subversion Repositories SvarDOS

Rev

Rev 56 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 56 Rev 81
Line 11... Line 11...
11
#include "video.h" /* include self for control */
11
#include "video.h" /* include self for control */
12
 
12
 
13
/* pointer to the VGA/MDA screen */
13
/* pointer to the VGA/MDA screen */
14
static unsigned short far *scr = (unsigned short far *)0xB8000000L;
14
static unsigned short far *scr = (unsigned short far *)0xB8000000L;
15
 
15
 
16
void video_clear(unsigned short attr, int offset) {
16
void video_clear(unsigned short attr, int offset, int offsetend) {
17
  int x;
-
 
18
  for (x = offset; x < 2000; x++) {
17
  offsetend += 2000;
19
    scr[x] = attr;
18
  while (offset < offsetend) scr[offset++] = attr;
20
  }
-
 
21
}
19
}
22
 
20
 
23
/* inits screen, returns 0 for color mode, 1 for mono */
21
/* inits screen, returns 0 for color mode, 1 for mono */
24
int video_init(void) {
22
int video_init(void) {
25
  union REGS r;
23
  union REGS r;