diff --git a/src/bios/disk.asm b/src/bios/disk.asm index 9cb7cbf..1dbc359 100644 --- a/src/bios/disk.asm +++ b/src/bios/disk.asm @@ -42,4 +42,4 @@ read_error: read_error_string: db ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, "ERROR! Disk read failed.", ASCII_END error_code_string: db "Error code: ", ASCII_END -sector_error_string: db "Invalid number of sectors read!", ASCII_END +sector_error_string: db "Invalid number of sectors read!", ASCII_END diff --git a/src/bootloader.asm b/src/bootloader.asm index c568288..a61e356 100644 --- a/src/bootloader.asm +++ b/src/bootloader.asm @@ -38,7 +38,7 @@ BEGIN_PM: load_kernel: mov bx, KERNEL_OFFSET ; Load kernel at the kernel offset - mov dh, 7 ; Read 15 sectors + mov dh, 9 ; Read 15 sectors mov dl, [BOOT_DRIVE] ; Drive index call disk_read ; Load the kernel diff --git a/src/lib/vga.c b/src/lib/vga.c index d951031..e3948e9 100644 --- a/src/lib/vga.c +++ b/src/lib/vga.c @@ -13,7 +13,7 @@ char* get_cursor_pos(unsigned int col, unsigned int row) { void print(char* str, unsigned int str_len) { for( char* c = str; *c != '\0'; c++ ) - *get_cursor_pos( GET_INDEX(str, c), cursor_y ) = 'Y'; + *get_cursor_pos( GET_INDEX(str, c), cursor_y ) = *c; } void println(char* str, unsigned int str_len) {