Subversion Repositories HelenOS

Rev

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

Rev 413 Rev 452
Line 56... Line 56...
56
    lo = inb(0x3d5);
56
    lo = inb(0x3d5);
57
    ega_cursor = (hi<<8)|lo;
57
    ega_cursor = (hi<<8)|lo;
58
    ega_putchar('\n');
58
    ega_putchar('\n');
59
}
59
}
60
 
60
 
61
void ega_display_char(char ch)
61
static void ega_display_char(char ch)
62
{
62
{
63
    __u8 *vram = (__u8 *) PA2KA(VIDEORAM);
63
    __u8 *vram = (__u8 *) PA2KA(VIDEORAM);
64
   
64
   
65
    vram[ega_cursor*2] = ch;
65
    vram[ega_cursor*2] = ch;
66
}
66
}
67
 
67
 
68
/*
68
/*
69
 * This function takes care of scrolling.
69
 * This function takes care of scrolling.
70
 */
70
 */
71
void ega_check_cursor(void)
71
static void ega_check_cursor(void)
72
{
72
{
73
    if (ega_cursor < SCREEN)
73
    if (ega_cursor < SCREEN)
74
        return;
74
        return;
75
 
75
 
76
    memcpy((void *)PA2KA(VIDEORAM), (void *)(PA2KA(VIDEORAM) + ROW*2), (SCREEN - ROW)*2);
76
    memcpy((void *)PA2KA(VIDEORAM), (void *)(PA2KA(VIDEORAM) + ROW*2), (SCREEN - ROW)*2);