You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
369 B

[bits 16]
; Loads the 32-bit kernel
i_kernel16_string: db 'Loading 32-bit kernel...', 0
i_kernel16_offset equ 0x1000
kernel16_load:
pusha
mov bx, i_kernel16_string
call print16
mov bx, i_kernel16_offset ; specify the disk load location
mov dh, 15 ; load first 15 sectors
mov dl, [i_global_boot_drive] ; from the boot disk
call disk16_load
jmp g_return