mirror of https://github.com/E-Almqvist/eOS
commit
8bb0dd10aa
@ -1,7 +1,19 @@ |
||||
#define VGA_ADDRESS (char*)0xb8000 |
||||
#define VGA_ADDRESS_MAX (char*)0xb8fa0 |
||||
|
||||
#define MAX_ROWS 25 |
||||
#define MAX_COLS 80 |
||||
|
||||
static unsigned int cursor_row; |
||||
static unsigned int cursor_col; |
||||
|
||||
enum align {LEFT, RIGHT, MIDDLE}; |
||||
|
||||
char* get_memory_charpos(unsigned int col, unsigned int row); |
||||
void writechar(char c, unsigned int col, unsigned int row, int colorcode); |
||||
void clear_screen(); |
||||
void set_cursor_pos(); |
||||
void print(); |
||||
void println(); |
||||
void printalign(char* str, int attribute_byte, enum align alignment); |
||||
void vga_init(); |
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 3.3 KiB |
Loading…
Reference in new issue