Rev 3844 | Rev 3908 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3844 | Rev 3902 | ||
---|---|---|---|
Line 81... | Line 81... | ||
81 | ega_cursor = ega_cursor - ROW; |
81 | ega_cursor = ega_cursor - ROW; |
82 | } |
82 | } |
83 | 83 | ||
84 | static void ega_move_cursor(void) |
84 | static void ega_move_cursor(void) |
85 | { |
85 | { |
86 | outb(ega_base + EGA_INDEX_REG, 0xe); |
86 | pio_write_8(ega_base + EGA_INDEX_REG, 0xe); |
87 | outb(ega_base + EGA_DATA_REG, (uint8_t) ((ega_cursor >> 8) & 0xff)); |
87 | pio_write_8(ega_base + EGA_DATA_REG, (uint8_t) ((ega_cursor >> 8) & 0xff)); |
88 | outb(ega_base + EGA_INDEX_REG, 0xf); |
88 | pio_write_8(ega_base + EGA_INDEX_REG, 0xf); |
89 | outb(ega_base + EGA_DATA_REG, (uint8_t) (ega_cursor & 0xff)); |
89 | pio_write_8(ega_base + EGA_DATA_REG, (uint8_t) (ega_cursor & 0xff)); |
90 | } |
90 | } |
91 | 91 | ||
92 | static void ega_display_char(char ch, bool silent) |
92 | static void ega_display_char(char ch, bool silent) |
93 | { |
93 | { |
94 | backbuf[ega_cursor * 2] = ch; |
94 | backbuf[ega_cursor * 2] = ch; |