Fixed printing

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

@ -38,7 +38,7 @@ BEGIN_PM:
load_kernel: load_kernel:
mov bx, KERNEL_OFFSET ; Load kernel at the kernel offset 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 mov dl, [BOOT_DRIVE] ; Drive index
call disk_read ; Load the kernel 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) { void print(char* str, unsigned int str_len) {
for( char* c = str; *c != '\0'; c++ ) 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) { void println(char* str, unsigned int str_len) {

Loading…
Cancel
Save