diff --git a/Makefile b/Makefile index d381f62..0eea523 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ all: os-image run: all qemu-system-x86_64 os-image +drun: clean run + grub: eOS.iso qemu-system-x86_64 eOS.iso diff --git a/src/kernel/lib/vga.c b/src/kernel/lib/vga.c index 7de8f48..3cbb4ae 100644 --- a/src/kernel/lib/vga.c +++ b/src/kernel/lib/vga.c @@ -48,7 +48,7 @@ void set_cursor_pos(unsigned int x, unsigned int y) { void print(char* str, int colorcode) { for( char* c = str; *c != '\0'; c++ ) - putc(*c, (unsigned int)(c - str + cursor_col), cursor_row, colorcode); + putc(*c, (unsigned int)(c - str) + cursor_col, cursor_row, colorcode); } void println(char* str, int colorcode) {