Moved kernel from 0x1000 to 0x50000

This commit is contained in:
2024-05-07 17:11:44 +02:00
parent e39bc2cabc
commit e617f4fe69
3 changed files with 6 additions and 7 deletions
+3 -4
View File
@@ -3,9 +3,8 @@
[global start]
%define VIDMEM 0xb800
%define KERNEL_LOC 0x1000
%define FILETAB_LOC 0x7000 ; TODO: Read kernel size and location from ft
%define KERNEL_SIZE 30; 15kB
%define KERNEL_SIZE 30 ; 15kB
start:
mov [driveNum], dl ; Store the drive number
@@ -64,9 +63,9 @@ loadKernel:
.read:
; Location
xor ax, ax
mov ax, 0x5000 ; Making es 0x5000 will load the kernel at 0x50000
mov es, ax
mov bx, KERNEL_LOC ; 2nd stage bootloader location
xor bx, bx
; CHS Location
mov al, KERNEL_SIZE