Fixed printing

pull/20/head
E. Almqvist 3 years ago
parent dbd87a7657
commit ddd2287711
  1. 2
      src/bios/disk.asm
  2. 2
      src/bootloader.asm
  3. 2
      src/lib/vga.c

@ -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

@ -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

@ -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) {

Loading…
Cancel
Save