Added AMAZING boot menu to KBOOT

This commit is contained in:
2025-01-05 18:20:15 +01:00
parent 707733e449
commit 94ca8c935f
22 changed files with 651 additions and 16 deletions
+4 -3
View File
@@ -11,6 +11,7 @@ jmp short .bpb_end
nop
; FAT32 Bios Parameter Block
; Some BIOSes mess with it so we just leave it blank
.bpb:
.bpb_oem_id: db "KERN "
.bpb_sector_size: dw 0
@@ -115,17 +116,17 @@ err:
[bits 32]
; Protected mode entry vector
vector:
mov eax, 0x10
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
and edx, 0xff
and edx, 0xff ; Still should be boot drive number
; Call stage 2 bootloader
call 0x70000
call code_seg:0x70000
; Padding and boot signature
times 510-($-$$) db 0
+2 -2
View File
@@ -24,5 +24,5 @@ gdtp:
dd gdt ; Pointer
; Segments
code_seg equ gdt.code_desc - gdt
data_seg equ gdt.data_desc - gdt
code_seg: equ gdt.code_desc - gdt
data_seg: equ gdt.data_desc - gdt