20 lines
369 B
NASM
20 lines
369 B
NASM
|
[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
|